Changeset 167 in dev for trunk/abdev/BasicCompiler_Common/include
- Timestamp:
- Jun 17, 2007, 9:56:19 PM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/Smoothie.h
r159 r167 7 7 public: 8 8 9 class Logger{10 static string log;11 public:12 static void Initialize(){13 #ifdef _DEBUG14 log = "";15 16 ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::trunc );17 ofs.close();18 #endif19 }20 static void Put( const string &text );21 static void PutFile( const string &fileName, const string &buffer ){22 ofstream ofs( ( (string)BasicSystemDir + "Log\\" + fileName ).c_str() );23 ofs << buffer << endl;24 ofs.close();25 }26 };27 28 9 class Lexical{ 29 10 public: 11 static string baseProjectDirPath; 30 12 static BasicSource source; 31 13 static NamespaceScopes liveingNamespaceScopes; -
trunk/abdev/BasicCompiler_Common/include/option.h
r165 r167 19 19 #endif 20 20 21 22 // ログ関係 23 21 24 // ログ生成しない場合はこの下の行をコメントアウトする 22 25 #define USE_TRACE 26 27 // オーバーロードに関するログを生成する 28 #define USE_TRACE_FOR_OVERLOAD 29 30 // モジュールサイズに関するログを生成する 31 #define USE_TRACE_FOR_SIZE 23 32 24 33 … … 28 37 29 38 #ifdef USE_TRACE 30 #define trace(s) Jenga::Common::logger << s << endl39 #define trace(s) Program::logger << s << endl 31 40 #else 32 41 #define trace(s) 33 42 #endif 43 44 #ifdef USE_TRACE_FOR_OVERLOAD 45 #define trace_for_overload(s) trace(s) 46 #else 47 #define trace_for_overload(s) 48 #endif 49 50 #ifdef USE_TRACE_FOR_SIZE 51 #define trace_for_size(s) trace(s) 52 #else 53 #define trace_for_size(s) 54 #endif
Note:
See TracChangeset
for help on using the changeset viewer.