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:
Steve Checkoway
2006-09-21 07:06:18 +00:00
parent 064f147f84
commit d7e64dc979
6 changed files with 16 additions and 21 deletions
+2 -2
View File
@@ -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 )