Voila ce qu'il m'affiche dans l'erreur.
[code=lua] static int tostring_T (lua_State *L) {
char buff[32];
T ** ptrHold = (T**)lua_touserdata(L,1);
T *obj = *ptrHold;
sprintf(buff, "%p", obj);
lua_pushfstring(L, "%s (%s)", GetTClassName<T>(), buff);
return 1;
}
ARCEMU_INLINE static void tostring(char * buff,void * obj)
{
===> sprintf(buff,"%p",obj);
}
};
void report(lua_State * L)
{
const char * msg= lua_tostring(L,-1);
while(msg)
{
lua_pop(L,-1);
printf("\t%s\n", msg);
msg=lua_tostring(L,-1);
}[/code]