Changeset 461 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/src/Procedure.cpp
- Timestamp:
- Mar 23, 2008, 11:35:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/src/Procedure.cpp
r447 r461 1 1 #include "stdafx.h" 2 3 #include <jenga/include/smoothie/Smoothie.h>4 #include <jenga/include/smoothie/SmoothieException.h>5 2 6 3 #include <Compiler.h> … … 251 248 252 249 if( type.IsNull() ){ 253 S moothieException::Throw(3,temporary,nowLine);250 SetError(3,temporary,nowLine); 254 251 type.SetBasicType( DEF_PTR_VOID ); 255 252 } … … 328 325 if(sw){ 329 326 //配列パラメータ 330 if( isRef == false ) S moothieException::Throw(29,NULL,nowLine);327 if( isRef == false ) SetError(29,NULL,nowLine); 331 328 isArray = true; 332 329 … … 392 389 393 390 if( type.IsNull() ){ 394 S moothieException::Throw(3,temporary,nowLine);391 SetError(3,temporary,nowLine); 395 392 type.SetBasicType( DEF_PTR_VOID ); 396 393 } … … 405 402 else{ 406 403 type.SetBasicType( Type::GetBasicTypeFromSimpleName(temporary) ); 407 S moothieException::Throw(-103,temporary,nowLine);404 SetError(-103,temporary,nowLine); 408 405 } 409 406 … … 655 652 UserProc *pUserProc = new UserProc( namespaceScopes, importedNamespaces, temporary, kind, isMacro, isCdecl, isExport, (id_base++) ); 656 653 pUserProc->SetParentClass( pobj_c ); 657 if( Smoothie::isFullCompile ){658 // すべての関数・メソッドをコンパイルする659 pUserProc->Using();660 }661 654 662 655 // 親インターフェイスをセット … … 772 765 if(sw){ 773 766 //配列パラメータ 774 if( isRef == false ) S moothieException::Throw(29,NULL,nowLine);767 if( isRef == false ) SetError(29,NULL,nowLine); 775 768 isArray = true; 776 769 … … 818 811 819 812 if( type.IsNull() ){ 820 S moothieException::Throw(3,temporary,nowLine);813 SetError(3,temporary,nowLine); 821 814 type.SetBasicType( DEF_PTR_VOID ); 822 815 } … … 824 817 else{ 825 818 type.SetBasicType( Type::GetBasicTypeFromSimpleName(temporary) ); 826 S moothieException::Throw(-103,temporary,nowLine);819 SetError(-103,temporary,nowLine); 827 820 } 828 821 … … 870 863 } 871 864 compiler.StringToType( temporary, this->returnType ); 872 if( this->returnType.IsNull() ) S moothieException::Throw(3,temporary,nowLine);865 if( this->returnType.IsNull() ) SetError(3,temporary,nowLine); 873 866 874 867 sw_as=1; … … 1066 1059 if(sw){ 1067 1060 //配列パラメータ 1068 if( isRef == false ) S moothieException::Throw(29,NULL,nowLine);1061 if( isRef == false ) SetError(29,NULL,nowLine); 1069 1062 isArray = true; 1070 1063 … … 1111 1104 1112 1105 if( type.IsNull() ){ 1113 S moothieException::Throw(3,temporary,nowLine);1106 SetError(3,temporary,nowLine); 1114 1107 type.SetBasicType( DEF_PTR_VOID ); 1115 1108 } … … 1117 1110 else{ 1118 1111 type.SetBasicType( Type::GetBasicTypeFromSimpleName(temporary) ); 1119 S moothieException::Throw(-103,temporary,nowLine);1112 SetError(-103,temporary,nowLine); 1120 1113 } 1121 1114 … … 1163 1156 } 1164 1157 compiler.StringToType( temporary, this->returnType ); 1165 if( this->returnType.IsNull() ) S moothieException::Throw(3,temporary,nowLine);1158 if( this->returnType.IsNull() ) SetError(3,temporary,nowLine); 1166 1159 1167 1160 sw_as=1; … … 1181 1174 if( this->ReturnType().IsNull() ){ 1182 1175 // 戻り値がない 1183 S moothieException::Throw(26,this->GetName(),nowLine);1176 SetError(26,this->GetName(),nowLine); 1184 1177 } 1185 1178 } … … 1187 1180 if( !this->ReturnType().IsNull() ){ 1188 1181 // Sub定義なのに、戻り値がある 1189 S moothieException::Throw(38,this->GetName(),nowLine);1182 SetError(38,this->GetName(),nowLine); 1190 1183 } 1191 1184 }
Note:
See TracChangeset
for help on using the changeset viewer.