Ignore:
Timestamp:
Aug 10, 2007, 9:20:45 PM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/gc.cpp

    r229 r272  
    1919    ///////////////////////////////
    2020
    21     sprintf(temporary,"_System_gc_StackRoot_StartPtr%c%c*LONG_PTR",1,ESC_AS);
    22     OpcodeDim(temporary,0);
     21    if( compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( "_System_gc_StackRoot_StartPtr" ) ) == NULL )
     22    {
     23        // 未定義の場合は定義する
     24        sprintf(temporary,"_System_gc_StackRoot_StartPtr%c%c*LONG_PTR",1,ESC_AS);
     25        OpcodeDim(temporary,0);
     26    }
    2327
    2428    GetVarOffsetReadWrite("_System_gc_StackRoot_StartPtr",&RelativeVar,type);
Note: See TracChangeset for help on using the changeset viewer.