Simplify. PushStack was only calling Push and possibly generating a function for each enumerated type which in the end only called Push. Rename PopStack -> Pop to be symmetric with Push.
This commit is contained in:
@@ -85,11 +85,11 @@ void IPreference::SetFromStack( lua_State *L )
|
||||
} \
|
||||
template<> void PrefSetFromStack( lua_State *L, type &v ) \
|
||||
{ \
|
||||
LuaHelpers::PopStack( v, L ); \
|
||||
LuaHelpers::Pop( v, L ); \
|
||||
} \
|
||||
template<> void PrefPushValue( lua_State *L, const type &v ) \
|
||||
{ \
|
||||
LuaHelpers::PushStack( v, L ); \
|
||||
LuaHelpers::Push( v, L ); \
|
||||
}
|
||||
|
||||
READFROM_AND_WRITETO( int )
|
||||
|
||||
Reference in New Issue
Block a user