Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 19, 2010, 1:23:43 PM (14 years ago)
Author:
landauf
Message:

reduced amount of member variables in Functor by moving these rarely used properties into virtual functions (which also fixes a small bug, because only FunctorStatic provided all required information so far)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/LuaState.h

    r7179 r7188  
    5454            void operator()(const MultiType& param1 = MT_Type::Null, const MultiType& param2 = MT_Type::Null, const MultiType& param3 = MT_Type::Null, const MultiType& param4 = MT_Type::Null, const MultiType& param5 = MT_Type::Null);
    5555            void evaluateParam(unsigned int index, MultiType& param) const {}
     56
     57            Functor::Type::Enum getType() const { return Functor::Type::Lua; } \
     58            unsigned int getParamCount() const { return 0; }
     59            bool hasReturnvalue() const { return 0; }
     60            std::string getTypenameParam(unsigned int param) const { return BLANKSTRING; }
     61            std::string getTypenameReturnvalue() const { return BLANKSTRING; }
     62
    5663            const std::type_info& getHeaderIdentifier() const { return typeid(this); }
    5764
Note: See TracChangeset for help on using the changeset viewer.