| OLD | NEW |
| 1 #ifndef __LIGHT_SYMBOLS__ | 1 #ifndef __LIGHT_SYMBOLS__ |
| 2 #define __LIGHT_SYMBOLS__ | 2 #define __LIGHT_SYMBOLS__ |
| 3 #define LS_TRACE(functionName,fileId,lineNumber) LightSymbol __lstr(functionName
,fileId,lineNumber); | 3 #define LS_TRACE(functionName,fileId,lineNumber) LightSymbol __lstr(functionName
,fileId,lineNumber); |
| 4 | 4 |
| 5 #include <stdio.h> | 5 #include <stdio.h> |
| 6 #include <string.h> | 6 #include <string.h> |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 //#include <pthread.h> | 9 //#include <pthread.h> |
| 10 #include <Windows.h> | 10 #include <windows.h> |
| 11 | 11 |
| 12 typedef char* SZ; | 12 typedef char* SZ; |
| 13 | 13 |
| 14 #define LIGHT_SYMBOLS_FILE "LIGHT_SYMBOLS_FILE" | 14 #define LIGHT_SYMBOLS_FILE "LIGHT_SYMBOLS_FILE" |
| 15 | 15 |
| 16 class LightSymbol { | 16 class LightSymbol { |
| 17 const char* sym; | 17 const char* sym; |
| 18 int fileId; | 18 int fileId; |
| 19 int lineNumber; | 19 int lineNumber; |
| 20 | 20 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 41 bool GetCallStackCore(char* sz, int len, const char* separator) const ; | 41 bool GetCallStackCore(char* sz, int len, const char* separator) const ; |
| 42 | 42 |
| 43 static LightSymbol* GetCurrentFrame() ; | 43 static LightSymbol* GetCurrentFrame() ; |
| 44 | 44 |
| 45 static void SetCurrentFrame(LightSymbol* ls) ; | 45 static void SetCurrentFrame(LightSymbol* ls) ; |
| 46 | 46 |
| 47 static const char* trim(char* sz) ; | 47 static const char* trim(char* sz) ; |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 #endif | 50 #endif |
| OLD | NEW |