Changeset 329 in dev for trunk/abdev/BasicCompiler32
- Timestamp:
- Sep 25, 2007, 11:13:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/increment.cpp
r290 r329 6 6 #include "Opcode.h" 7 7 8 void IncDec(int idCalc, const char *lpszLeft, const char *lpszRight){ 8 void IncDec(int idCalc, const char *lpszLeft, const char *lpszRight) 9 { 10 Type varType; 11 if( GetVarType( lpszLeft, varType, false ) ) 12 { 13 if( varType.IsObject() ) 14 { 15 // オブジェクトが対象だったとき 16 char temporary[8192]; 17 char calcStr[32]; 18 GetCalcName( idCalc, calcStr ); 19 sprintf( temporary, "%s=%s %s %s", lpszLeft, lpszLeft, calcStr, lpszRight ); 20 SetEscapeSequenceFormat( temporary ); 21 KillStringSpaces( temporary ); 22 OpcodeCalc( temporary ); 23 return; 24 } 25 } 9 26 10 27 /////////////////////////// 11 28 // 変数アドレスを取得 12 29 /////////////////////////// 13 14 30 RELATIVE_VAR VarRelativeVar; 15 Type varType;16 31 if(!GetVarOffsetReadWrite( 17 32 lpszLeft,
Note:
See TracChangeset
for help on using the changeset viewer.