This commit is contained in:
Glenn Maynard
2005-06-23 09:04:06 +00:00
parent c8994b27f9
commit fc948e9ce9
+2 -3
View File
@@ -155,9 +155,8 @@ private:
static int tostring_T( lua_State *L )
{
char buff[32];
void **pData = (void **) lua_touserdata( L, 1 );
T *obj = (T *) *pData;
sprintf( buff, "%p", obj) ;
void *pData = check( L, -1 );
sprintf( buff, "%p", pData );
lua_pushfstring( L, "%s (%s)", m_sClassName, buff );
return 1;
}