Changeset 93


Ignore:
Timestamp:
2006-07-16T11:12:55+02:00 (9 years ago)
Author:
moo
Message:

try to show both count/size assert before abort

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/struct.m4

    r29 r93  
    7373                if (done_count != assert_count) {
    7474                    fprintf(stderr
    75                         , "count assertion failed at %s `#'%d FUNC_NAME`' : unexpected %d - expected %d = %d != 0\n"
     75                        , "count assertion failed at %s `#'%d FUNC_NAME`' : unexpected:%d - expecting:%d = %d != 0\n"
    7676                        , __FILE__, __LINE__
    7777                        , done_count, assert_count, done_count - assert_count
    7878                        );
    79                     abort();
    8079                }
    8180                if (done_size != assert_size) {
    8281                    fprintf(stderr
    83                         , "size assertion failed at %s `#'%d FUNC_NAME`' : %d - %d = %d != 0\n"
     82                        , "size assertion failed at %s `#'%d FUNC_NAME`' : unexpected:%d - expecting:%d = %d != 0\n"
    8483                        , __FILE__, __LINE__
    8584                        , done_size, assert_size, done_size - assert_size
    8685                        );
    87                     abort();
     86                }
     87                if (done_count != assert_count || done_size != assert_size) {
     88                    assert(0);
    8889                }
    8990                /* }}} */
Note: See TracChangeset for help on using the changeset viewer.