Ignore:
Timestamp:
2013-11-08T17:03:15+01:00 (13 months ago)
Author:
moo
Message:

relocate: assert that srcptr use on non-nullable only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/head.m4

    r1452 r1458  
    8484#define ptradd(type, ptr, ptrdiff) ((type) (((char *) (ptr)) + (ptrdiff))) 
    8585#define ptrsub(ptr1, ptr2) (((char *) (ptr1)) - ((char *) (ptr2))) 
     86#ifdef NDEBUG 
     87    #define notnullable(ptr) (ptr) 
     88#else 
     89static inline void *notnullable(void *ptr) 
     90{ 
     91    assert(ptr); 
     92    return ptr; 
     93} 
     94#endif 
    8695dnl }}} 
    8796dnl {{{ _xc_processor_t 
Note: See TracChangeset for help on using the changeset viewer.