ScriptComponent.h File Reference

#include "simulation2/system/Component.h"
#include "ps/CLogger.h"
#include <boost/preprocessor/repetition/enum_params.hpp>
#include <boost/preprocessor/repetition/enum_trailing_params.hpp>
#include <boost/preprocessor/repetition/enum_trailing_binary_params.hpp>

Go to the source code of this file.

Classes

class  CComponentTypeScript

Defines

#define OVERLOADS(z, i, data)

Define Documentation

#define OVERLOADS ( z,
i,
data   ) 
Value:
template<typename R  BOOST_PP_ENUM_TRAILING_PARAMS(i, typename T)> \
    R Call(const char* funcname  BOOST_PP_ENUM_TRAILING_BINARY_PARAMS(i, const T, &a)) \
    { \
        R ret; \
        if (m_ScriptInterface.CallFunction(m_Instance.get(), funcname  BOOST_PP_ENUM_TRAILING_PARAMS(i, a), ret)) \
            return ret; \
        LOGERROR(L"Error calling component script function %hs", funcname); \
        return R(); \
    } \
    BOOST_PP_IF(i, template<, ) BOOST_PP_ENUM_PARAMS(i, typename T) BOOST_PP_IF(i, >, ) \
    void CallVoid(const char* funcname  BOOST_PP_ENUM_TRAILING_BINARY_PARAMS(i, const T, &a)) \
    { \
        if (m_ScriptInterface.CallFunctionVoid(m_Instance.get(), funcname  BOOST_PP_ENUM_TRAILING_PARAMS(i, a))) \
            return; \
        LOGERROR(L"Error calling component script function %hs", funcname); \
    }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed May 16 03:15:24 2012 for Pyrogenesis by  doxygen 1.6.3