#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.
#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)) \
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))) \
LOGERROR(L
"Error calling component script function %hs", funcname); \
}
#define T(string_literal)
Definition at line 55 of file ScriptComponent.h.