Changeset 91 in dev for BasicCompiler_Common/include
- Timestamp:
- Apr 7, 2007, 10:07:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/include/Smoothie.h
r88 r91 6 6 class Smoothie{ 7 7 public: 8 9 class Logger{ 10 static string log; 11 public: 12 static void Initialize(){ 13 #ifdef _DEBUG 14 log = ""; 15 16 ofstream ofs( ( (string)BasicSystemDir + "compile.log" ).c_str(), ios_base::trunc ); 17 ofs.close(); 18 #endif 19 } 20 static void Put( const string &text ){ 21 #ifdef _DEBUG 22 log += text + "\r\n"; 23 24 { 25 ofstream ofs( ( (string)BasicSystemDir + "compile.log" ).c_str(), ios_base::app ); 26 ofs << text << endl; 27 ofs.close(); 28 } 29 #endif 30 } 31 }; 8 32 9 33 class Lexical{
Note:
See TracChangeset
for help on using the changeset viewer.