Ignore:
File:
1 edited

Legend:

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

    rd8de5d3 r13f2461  
    4747 */
    4848
     49#define STR(l)  #l
     50#define STR2(l) STR(l)
     51
    4952#ifndef NDEBUG
    5053
     
    5255        do { \
    5356                if (!(expr)) \
    54                         assert_abort(#expr, __FILE__, __LINE__); \
     57                        assert_abort(#expr, __FILE__, STR2(__LINE__)); \
    5558        } while (0)
    5659
     
    6164#endif /* NDEBUG */
    6265
    63 extern void assert_abort(const char *, const char *, unsigned int)
     66extern void assert_abort(const char *, const char *, const char *)
    6467    __attribute__((noreturn));
     68
    6569
    6670#endif
Note: See TracChangeset for help on using the changeset viewer.