Removed DbgPrint() definition since it is already part of platform.h.
This commit is contained in:
		| @@ -34,22 +34,6 @@ | |||||||
|  |  | ||||||
| //===[ Type definitions ]================================================== | //===[ Type definitions ]================================================== | ||||||
|  |  | ||||||
| #ifndef CONTAINING_RECORD |  | ||||||
| #define CONTAINING_RECORD(address, type, field) ((type *)(     \ |  | ||||||
|              (char*)(address) -                                \ |  | ||||||
|              (char*)(&((type *)0)->field))) |  | ||||||
| #endif |  | ||||||
|  |  | ||||||
| // |  | ||||||
| // DbgTrace macro define |  | ||||||
| // |  | ||||||
| #define DbgTrace(LEVEL, X, Y) {                          \ |  | ||||||
|    if (LEVEL == 0)                                       \ |  | ||||||
|       printf(X, Y);                                      \ |  | ||||||
|    else if (DebugLevel >= LEVEL)                         \ |  | ||||||
|          printf(X, Y);                                   \ |  | ||||||
| } |  | ||||||
|  |  | ||||||
| //===[ Inlines functions   ]=============================================== | //===[ Inlines functions   ]=============================================== | ||||||
|  |  | ||||||
| //===[ Function prototypes ]=============================================== | //===[ Function prototypes ]=============================================== | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user