Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e06e2716 in mainline for uspace/lib/c/include/assert.h


Ignore:
Timestamp:
2011-05-22T19:17:56Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial
Children:
9ea8fdb4
Parents:
13f2461
Message:

Passing stringified LINE does not conserve space very well,
pass it as integer again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/assert.h

    r13f2461 re06e2716  
    4747 */
    4848
    49 #define STR(l)  #l
    50 #define STR2(l) STR(l)
    51 
    5249#ifndef NDEBUG
    5350
     
    5552        do { \
    5653                if (!(expr)) \
    57                         assert_abort(#expr, __FILE__, STR2(__LINE__)); \
     54                        assert_abort(#expr, __FILE__, __LINE__); \
    5855        } while (0)
    5956
     
    6461#endif /* NDEBUG */
    6562
    66 extern void assert_abort(const char *, const char *, const char *)
     63extern void assert_abort(const char *, const char *, unsigned int)
    6764    __attribute__((noreturn));
    6865
Note: See TracChangeset for help on using the changeset viewer.