9369ef89e25df558452e13c9f701dcad05944337
[reactos.git] / reactos / include / ntdll / ntdll.h
1 extern void dprintf(char* fmt,...);
2
3 #define UNIMPLEMENTED dprintf("%s in %s:%d is unimplemented\n",__FUNCTION__,__FILE__,__LINE__);
4
5 #ifdef NDEBUG
6 #define DPRINT(args...)
7 #else
8 #define DPRINT(args...) do { dprintf("(NTDLL:%s:%d) ",__FILE__,__LINE__); dprintf(args); } while(0);
9 #endif
10
11 #define ROUNDUP(a,b) ((((a)+(b)-1)/(b))*(b))
12 #define ROUNDDOWN(a,b) (((a)/(b))*(b))
13
14 #define MAGIC(c1,c2,c3,c4) ((c1) + ((c2)<<8) + ((c3)<<16) + ((c4)<<24))
15
16 #define MAGIC_HEAP MAGIC( 'H','E','A','P' )