Changeset 50 in dev for BasicCompiler32/Compile_Object.cpp
- Timestamp:
- Feb 10, 2007, 5:44:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler32/Compile_Object.cpp
r40 r50 2 2 #include "opcode.h" 3 3 4 void CallConstructor(CClass *pobj_c,char *CreateParameter,int ObjectSize,BOOL bSomeObjects){4 void _call_constructor(CClass *pobj_c,char *CreateParameter,int ObjectSize,BOOL bSomeObjects){ 5 5 //////////////////////////// 6 6 // コンストラクタの呼び出し … … 31 31 //////////////////////// 32 32 33 SUBINFO **ppsi; 33 std::vector<SUBINFO *> subs; 34 pobj_c->EnumMethod( pobj_c->name, subs ); 35 34 36 SUBINFO *psi; 35 int num; 36 ppsi=GetOverloadObjectSubHash(pobj_c->name,pobj_c,&num); 37 if(num){ 37 if( subs.size() > 0 ){ 38 38 //オーバーロードを解決 39 39 psi=OverloadSolutionWithStrParam(pobj_c->name, 40 ppsi,num,CreateParameter,"",NULL); 41 HeapDefaultFree(ppsi); 40 subs,CreateParameter,"",NULL); 42 41 43 42 if(!psi) return; … … 253 252 if(ObjectSize[0]) bSomeObjects=1; 254 253 else bSomeObjects=0; 255 CallConstructor(pobj_c,CreateParameter,TypeSize,bSomeObjects);254 _call_constructor(pobj_c,CreateParameter,TypeSize,bSomeObjects); 256 255 257 256 return DEF_PTR_OBJECT;
Note:
See TracChangeset
for help on using the changeset viewer.