Changeset 186 in dev for trunk/jenga/src/smoothie/TypeDef.cpp
- Timestamp:
- Jun 25, 2007, 4:22:39 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jenga/src/smoothie/TypeDef.cpp
r181 r186 10 10 { 11 11 if( !Type::StringToType( baseName, baseType ) ){ 12 throw SmoothieException(3, baseName, nowLine );12 SmoothieException::Throw(3, baseName, nowLine ); 13 13 return; 14 14 } … … 89 89 90 90 if(expression[i]!='='){ 91 throw SmoothieException(10,"TypeDef",nowLine);91 SmoothieException::Throw(10,"TypeDef",nowLine); 92 92 return; 93 93 } … … 100 100 if(temporary[i]=='\0') break; 101 101 if(!IsVariableChar(temporary[i])){ 102 throw SmoothieException(10,"TypeDef",nowLine);102 SmoothieException::Throw(10,"TypeDef",nowLine); 103 103 return; 104 104 } … … 109 109 //関数ポインタ 110 110 if(pTemp[3]!='('){ 111 throw SmoothieException(10,"TypeDef",nowLine);111 SmoothieException::Throw(10,"TypeDef",nowLine); 112 112 return; 113 113 } … … 119 119 if(pTemp[i]=='\0') break; 120 120 if(!IsVariableChar(pTemp[i])){ 121 throw SmoothieException(10,"TypeDef",nowLine);121 SmoothieException::Throw(10,"TypeDef",nowLine); 122 122 return; 123 123 } … … 127 127 //識別子が重複している場合はエラーにする 128 128 if(lstrcmp(temporary,pTemp)==0){ 129 throw SmoothieException(1,NULL,nowLine);129 SmoothieException::Throw(1,NULL,nowLine); 130 130 return; 131 131 } … … 173 173 else if( basbuf[i] == 1 && basbuf[i+1] == ESC_ENDNAMESPACE ){ 174 174 if( namespaceScopes.size() <= 0 ){ 175 throw SmoothieException(12, "End Namespace", i );175 SmoothieException::Throw(12, "End Namespace", i ); 176 176 } 177 177 else{ … … 192 192 if( !importedNamespaces.Imports( temporary ) ) 193 193 { 194 throw SmoothieException(64,temporary,i );194 SmoothieException::Throw(64,temporary,i ); 195 195 } 196 196
Note:
See TracChangeset
for help on using the changeset viewer.