Changeset 95 in dev for BasicCompiler_Common/hash.cpp


Ignore:
Timestamp:
Apr 15, 2007, 1:34:02 AM (18 years ago)
Author:
dai_9181
Message:

RegisterGlobalRootsの自動生成に対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/hash.cpp

    r75 r95  
    184184    return pUserProc;
    185185}
     186
     187UserProc *GetClassMethod( const char *className, const char *methodName ){
     188    CClass *pClass = pobj_DBClass->check( className );
     189    if( pClass ){
     190        vector<UserProc *> userProcs;
     191        pClass->EnumMethod( methodName, userProcs );
     192        if( userProcs.size() == 1 ){
     193            return userProcs[0];
     194        }
     195    }
     196
     197    char temporary[VN_SIZE];
     198    sprintf( temporary, "%s.%s", className, methodName );
     199    SetError(3, temporary, -1 );
     200
     201    return NULL;
     202}
Note: See TracChangeset for help on using the changeset viewer.