template<typename T>
class moLuna< T >
LunaFourCode.
Esta clase template estática es utilizada para registrar clases de Moldeo dentro de la máquina virtual de LUA.
Definition at line 68 of file moLuna.h.
template<typename T>
static void moLuna< T >::Register |
( |
lua_State * |
L, |
|
|
const char * |
namespac = "" |
|
) |
| |
|
inlinestatic |
eso no esta en LunaFourCode
LunaFourCode @ check Arguments: L - Lua State narg - Position to check
Description: Retrieves a wrapped class from the arguments passed to the function, specified by narg (position). This function will raise an exception if the argument is not of the correct type.OVERRIDE OLD FUNCTION : get userdata from Lua stack and return pointer to T object static T check(lua_State *L, int narg) { userdataType *ud = static_cast<userdataType>(luaL_checkudata(L, narg, T::className)); if(!ud) luaL_typerror(L, narg, T::className); return ud->pT; // pointer to T object }LunaFourCode @ lightcheck Arguments: L - Lua State narg - Position to check
Description: Retrieves a wrapped class from the arguments passed to the function, specified by narg (position). This function will return NULL if the argument is not of the correct type. Useful for supporting multiple types of arguments passed to the function Registra la clase T en la máquina virtual con estado L. El uso de esta función estática es: moLuna<T>::Register(L);
- Parameters
-
L | puntero al estado de la máquina virtual.LunaFourCode @ Register Arguments: L - Lua State namespac - Namespace to load into |
Description: Registers your class with Lua. Leave namespac "" if you want to load it into the global space.
Definition at line 237 of file moLuna.h.