Changeset 537

Show
Ignore:
Timestamp:
08/19/07 11:35:43 (1 year ago)
Author:
takkaria
Message:

Add some useful debugging macros to h-basic.h, and remove NULL, which is defined in C89.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/h-basic.h

    r536 r537  
    222222 
    223223 
    224  
    225 /*** Simple constants ***/ 
    226  
    227 /* Define NULL */ 
    228 #ifndef NULL 
    229 # define NULL ((void*)0) 
    230 #endif 
    231  
     224/** Debugging macros ***/ 
     225 
     226#define DSTRINGIFY(x) #x 
     227#define DSTRING(x)    DSTRINGIFY(x) 
     228#define DHERE         __FILE__ ":" DSTRING(__LINE__) ": " 
    232229 
    233230