Ignore:
Timestamp:
Mar 23, 2008, 10:38:38 AM (16 years ago)
Author:
dai_9181
Message:

・Compiler::IsDebugメソッドを導入した(bDebugCompileグローバル変数は廃止)。
・bStrictグローバル変数は意味を成さないので廃止した。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler32/Compile_ProcOp.cpp

    r402 r459  
    4242        cp=-1;
    4343
    44         extern BOOL bDebugCompile;
    45         if(bDebugCompile){
     44        if( compiler.IsDebug() )
     45        {
    4646            //デバッグ用の変数を定義
    4747            DebugVariable();
     
    283283    extern char *basbuf;
    284284    extern HANDLE hHeap;
    285     extern BOOL bDebugCompile;
    286285    int i3,i4,BaseOffset;
    287286    char temporary[VN_SIZE];
     
    301300
    302301    extern BOOL bDebugSupportProc;
    303     if(memcmp(pUserProc->GetName().c_str(),"_DebugSys_",10)==0){
    304         if(!bDebugCompile){
     302    if(memcmp(pUserProc->GetName().c_str(),"_DebugSys_",10)==0)
     303    {
     304        if( !compiler.IsDebug() )
     305        {
    305306            return;
    306307        }
     
    476477
    477478    const PertialSchedule *pEspOffsetPertialSchedule = NULL;
    478     if(bDebugCompile&&bDebugSupportProc==0){
     479    if( compiler.IsDebug() && bDebugSupportProc == 0 )
     480    {
    479481        //push dword ptr[ebp+(AllLocalVarSize-BaseOffset)](スケジュール)
    480482        pEspOffsetPertialSchedule = compiler.codeGenerator.op_push_M( REG_EBP, 0, Schedule::None, true );
     
    633635    compiler.codeGenerator.ResolveExitSubSchedule();
    634636
    635     if(bDebugCompile&&bDebugSupportProc==0){
     637    if( compiler.IsDebug() && bDebugSupportProc == 0 )
     638    {
    636639        compiler.codeGenerator.opfix( pEspOffsetPertialSchedule, AllLocalVarSize-BaseOffset-sizeof(long) );
    637640
     
    739742    compiler.codeGenerator.op_pop(REG_EBX);
    740743
    741     if(bDebugCompile){
     744    if( compiler.IsDebug() )
     745    {
    742746        //cmp esp,ebp
    743747        compiler.codeGenerator.op_cmp_RR( REG_ESP, REG_EBP );
Note: See TracChangeset for help on using the changeset viewer.