Ignore:
Timestamp:
Jun 17, 2007, 9:56:19 PM (17 years ago)
Author:
dai_9181
Message:

BasicSysDirをGetAppDirに置き換えた

Location:
trunk/abdev/BasicCompiler_Common/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/include/Smoothie.h

    r159 r167  
    77public:
    88
    9     class Logger{
    10         static string log;
    11     public:
    12         static void Initialize(){
    13 #ifdef _DEBUG
    14             log = "";
    15 
    16             ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::trunc );
    17             ofs.close();
    18 #endif
    19         }
    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 
    289    class Lexical{
    2910    public:
     11        static string baseProjectDirPath;
    3012        static BasicSource source;
    3113        static NamespaceScopes liveingNamespaceScopes;
  • trunk/abdev/BasicCompiler_Common/include/option.h

    r165 r167  
    1919#endif
    2020
     21
     22// ログ関係
     23
    2124// ログ生成しない場合はこの下の行をコメントアウトする
    2225#define USE_TRACE
     26
     27// オーバーロードに関するログを生成する
     28#define USE_TRACE_FOR_OVERLOAD
     29
     30// モジュールサイズに関するログを生成する
     31#define USE_TRACE_FOR_SIZE
    2332
    2433
     
    2837
    2938#ifdef USE_TRACE
    30 #define trace(s) Jenga::Common::logger << s << endl
     39#define trace(s) Program::logger << s << endl
    3140#else
    3241#define trace(s)
    3342#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.