"I made this"

lua_replace -> lua_remove
This commit is contained in:
Glenn Maynard
2006-09-30 21:55:31 +00:00
parent 3b9c5f18fb
commit cd8f1fc1c6
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ const RString &EnumToString( int iVal, int iMax, const char **szNameArray, auto_
}
/*
* (c) 2004 Chris Danford
* (c) 2006 Glenn Maynard
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
+2 -3
View File
@@ -82,11 +82,10 @@ namespace Enum
/* Look up the string value. */
EnumTraits<T>::EnumToString.PushSelf( L );
lua_rawgeti( L, -1, iVal + 1 );
lua_replace( L, -2 );
lua_remove( L, -2 );
}
};
static const RString EMPTY_STRING;
const RString &EnumToString( int iVal, int iMax, const char **szNameArray, auto_ptr<RString> *pNameCache ); // XToString helper
#define XToString2(X) \
@@ -167,7 +166,7 @@ namespace LuaHelpers { void Push( lua_State *L, const X &Object ) { Enum::Push<X
#endif
/*
* (c) 2004 Chris Danford
* (c) 2004-2006 Chris Danford, Glenn Maynard
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a