Ignore:
Timestamp:
Sep 25, 2007, 9:23:38 PM (17 years ago)
Author:
dai_9181
Message:

デリゲートのベースがほぼ実装できた

File:
1 edited

Legend:

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

    r322 r327  
    225225        }
    226226
     227        sprintf(buffer+length,"\tFunction Operator or (enumBase As %s) As %s\n",parent->GetName().c_str(),parent->GetName().c_str());
     228        length+=lstrlen(buffer+length);
     229        sprintf(buffer+length,"\t\tReturn New %s(This.value or enumBase.value, \"custom\")\n",parent->GetName().c_str());
     230        length+=lstrlen(buffer+length);
     231        lstrcpy(buffer+length,"\tEnd Function\n");
     232        length+=lstrlen(buffer+length);
     233
     234        sprintf(buffer+length,"\tFunction Operator and (enumBase As %s) As %s\n",parent->GetName().c_str(),parent->GetName().c_str());
     235        length+=lstrlen(buffer+length);
     236        sprintf(buffer+length,"\t\tReturn New %s(This.value and enumBase.value, \"custom\")\n",parent->GetName().c_str());
     237        length+=lstrlen(buffer+length);
     238        lstrcpy(buffer+length,"\tEnd Function\n");
     239        length+=lstrlen(buffer+length);
     240
    227241        /*
    228242        sprintf(buffer+length,"\tOverride Function ToString() As String\n",parent->TypeName);
Note: See TracChangeset for help on using the changeset viewer.