Changeset 339 in dev for trunk/abdev/BasicCompiler_Common


Ignore:
Timestamp:
Oct 3, 2007, 3:42:05 AM (17 years ago)
Author:
dai_9181
Message:

64ビットコンパイラもデリゲートに対応させた

Location:
trunk/abdev/BasicCompiler_Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/include/Delegate.h

    r325 r339  
    66class Delegate : public Procedure, public Jenga::Common::ObjectInHashmap<Delegate>
    77{
     8    Parameters dynamicParams;
     9
    810public:
    911    Delegate( const NamespaceScopes &namespaceScopes, const std::string &name, Procedure::Kind procKind, const char *paramStr, const Type &returnType, int nowLine );
     
    1618        return GetName();
    1719    }
     20
     21    const Parameters &GetDynamicParams() const
     22    {
     23        return dynamicParams;
     24    }
    1825};
    1926
  • trunk/abdev/BasicCompiler_Common/src/Delegate.cpp

    r335 r339  
    88    this->returnType = returnType;
    99    params.Analyze( paramStr, nowLine );
     10
     11    dynamicParams = params;
     12    dynamicParams.insert( dynamicParams.begin(), new Parameter( "_System_LocalThis", Type( DEF_PTR_VOID ) ) );
    1013}
    1114
Note: See TracChangeset for help on using the changeset viewer.