Changeset 2061 for trunk/include/misc.h
- Timestamp:
- Dec 12, 1999, 3:32:38 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/misc.h
r1953 r2061 1 /* $Id: misc.h,v 1.1 1 1999-12-03 01:20:02 phallerExp $ */1 /* $Id: misc.h,v 1.12 1999-12-12 14:31:29 sandervl Exp $ */ 2 2 3 3 /* … … 31 31 32 32 #ifdef DEBUG 33 #ifdef PRIVATE_LOGGING 34 //To use private dll logging, define PRIVATE_LOGGING and 35 //add Open/ClosePrivateLogFiles (see below) functions to the dll 36 //to open close the private logfile. The logfile handle should 37 //be stored in the _privateLogFile variable 38 //dprintf can be called like this: 39 //dprintf((LOG, "PE file : %s", szFileName)); 40 #define LOG (void*)_privateLogFile 41 #define dprintf(a) WritePrivateLog a 42 #define dprintfGlobal(a) WriteLog a 43 #else 33 44 #define dprintf(a) WriteLog a 45 #endif 34 46 #define eprintf(a) WriteLog a ; WriteLogError a 35 47 #define dassert(a, b) if(!(a)) WriteLogError b … … 37 49 38 50 #ifdef DEBUG_ENABLELOG_LEVEL2 39 #define dprintf2(a) WriteLog a 51 #ifdef PRIVATE_LOGGING 52 #define dprintf2(a) WritePrivateLog a 53 #else 54 #define dprintf2(a) WriteLog a 55 #endif 40 56 #else 41 57 #define dprintf2(a) … … 43 59 44 60 #else 61 #define dprintfGlobal(a) 45 62 #define dprintf(a) 46 63 #define dprintf2(a) … … 67 84 68 85 int SYSTEM WriteLog(char *tekst, ...); 86 int SYSTEM WritePrivateLog(void *logfile, char *tekst, ...); 69 87 70 88 int SYSTEM WriteLogError(char *tekst, ...); … … 78 96 ...); 79 97 98 //To use private logfiles for dlls, you must have these functions and call 99 //them when the dll is loaded (open) and the exitlist handler is called (close) 100 void OpenPrivateLogFiles(); 101 void ClosePrivateLogFiles(); 80 102 81 103 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.