Ignore:
Timestamp:
Mar 23, 2008, 11:35:33 AM (16 years ago)
Author:
dai_9181
Message:

smoothieプロジェクトが不要になったため、破棄。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Procedure.cpp

    r447 r461  
    11#include "stdafx.h"
    2 
    3 #include <jenga/include/smoothie/Smoothie.h>
    4 #include <jenga/include/smoothie/SmoothieException.h>
    52
    63#include <Compiler.h>
     
    251248
    252249            if( type.IsNull() ){
    253                 SmoothieException::Throw(3,temporary,nowLine);
     250                SetError(3,temporary,nowLine);
    254251                type.SetBasicType( DEF_PTR_VOID );
    255252            }
     
    328325        if(sw){
    329326            //配列パラメータ
    330             if( isRef == false ) SmoothieException::Throw(29,NULL,nowLine);
     327            if( isRef == false ) SetError(29,NULL,nowLine);
    331328            isArray = true;
    332329
     
    392389
    393390            if( type.IsNull() ){
    394                 SmoothieException::Throw(3,temporary,nowLine);
     391                SetError(3,temporary,nowLine);
    395392                type.SetBasicType( DEF_PTR_VOID );
    396393            }
     
    405402        else{
    406403            type.SetBasicType( Type::GetBasicTypeFromSimpleName(temporary) );
    407             SmoothieException::Throw(-103,temporary,nowLine);
     404            SetError(-103,temporary,nowLine);
    408405        }
    409406
     
    655652    UserProc *pUserProc = new UserProc( namespaceScopes, importedNamespaces, temporary, kind, isMacro, isCdecl, isExport, (id_base++) );
    656653    pUserProc->SetParentClass( pobj_c );
    657     if( Smoothie::isFullCompile ){
    658         // すべての関数・メソッドをコンパイルする
    659         pUserProc->Using();
    660     }
    661654
    662655    // 親インターフェイスをセット
     
    772765        if(sw){
    773766            //配列パラメータ
    774             if( isRef == false ) SmoothieException::Throw(29,NULL,nowLine);
     767            if( isRef == false ) SetError(29,NULL,nowLine);
    775768            isArray = true;
    776769
     
    818811
    819812            if( type.IsNull() ){
    820                 SmoothieException::Throw(3,temporary,nowLine);
     813                SetError(3,temporary,nowLine);
    821814                type.SetBasicType( DEF_PTR_VOID );
    822815            }
     
    824817        else{
    825818            type.SetBasicType( Type::GetBasicTypeFromSimpleName(temporary) );
    826             SmoothieException::Throw(-103,temporary,nowLine);
     819            SetError(-103,temporary,nowLine);
    827820        }
    828821
     
    870863                }
    871864                compiler.StringToType( temporary, this->returnType );
    872                 if( this->returnType.IsNull() ) SmoothieException::Throw(3,temporary,nowLine);
     865                if( this->returnType.IsNull() ) SetError(3,temporary,nowLine);
    873866
    874867                sw_as=1;
     
    10661059        if(sw){
    10671060            //配列パラメータ
    1068             if( isRef == false ) SmoothieException::Throw(29,NULL,nowLine);
     1061            if( isRef == false ) SetError(29,NULL,nowLine);
    10691062            isArray = true;
    10701063
     
    11111104
    11121105            if( type.IsNull() ){
    1113                 SmoothieException::Throw(3,temporary,nowLine);
     1106                SetError(3,temporary,nowLine);
    11141107                type.SetBasicType( DEF_PTR_VOID );
    11151108            }
     
    11171110        else{
    11181111            type.SetBasicType( Type::GetBasicTypeFromSimpleName(temporary) );
    1119             SmoothieException::Throw(-103,temporary,nowLine);
     1112            SetError(-103,temporary,nowLine);
    11201113        }
    11211114
     
    11631156                }
    11641157                compiler.StringToType( temporary, this->returnType );
    1165                 if( this->returnType.IsNull() ) SmoothieException::Throw(3,temporary,nowLine);
     1158                if( this->returnType.IsNull() ) SetError(3,temporary,nowLine);
    11661159
    11671160                sw_as=1;
     
    11811174        if( this->ReturnType().IsNull() ){
    11821175            // 戻り値がない
    1183             SmoothieException::Throw(26,this->GetName(),nowLine);
     1176            SetError(26,this->GetName(),nowLine);
    11841177        }
    11851178    }
     
    11871180        if( !this->ReturnType().IsNull() ){
    11881181            // Sub定義なのに、戻り値がある
    1189             SmoothieException::Throw(38,this->GetName(),nowLine);
     1182            SetError(38,this->GetName(),nowLine);
    11901183        }
    11911184    }
Note: See TracChangeset for help on using the changeset viewer.