src/tinyl2c.cpp
//////////////////////////////////////////////////////////////////////////
//The LUA hooks that invoke the getter or setter for a variable via
//a variable functor. The functions expect the first up value to be
//a pointer to the c++ functor.
//////////////////////////////////////////////////////////////////////////
The LUA hooks that invoke the getter or setter for a variable via
a variable functor. The functions expect the first up value to be
a pointer to the c++ functor.
The LUA hooks that invoke the getter or setter for a variable via a variable functor . The functions expect the first up value to be a pointer to the c ++ functor .
int l2cinternal_variable_get(lua_State* L)
{
	L2CVariable* variable = (L2CVariable*)lua_touserdata(L,lua_upvalueindex(1));
	if (!variable)
		luaL_error(L, "Invalid variable access");
	return variable->Get(L);
}
int l2cinternal_variable_get ( lua_State * L ) { L2CVariable * variable = ( L2CVariable * ) lua_touserdata ( L , lua_upvalueindex ( 1 ) ) ; if ( ! variable ) luaL_error ( L , " " ) ; return variable -> Get ( L ) ; }
The LUA hooks that invoke the getter or setter for a variable via
a variable functor.
The LUA hooks that invoke the getter or setter for a variable via a variable functor .