Skip to content

Commit 19e79db

Browse files
committed
luajit: add a debug print
1 parent b5ca194 commit 19e79db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

LuaJIT-2.1/src/lj_api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ LUALIB_API void luaL_checkany(lua_State *L, int idx)
281281

282282
if (mt)
283283
{
284-
GCstr* str = lj_str_new(L, "MetaName", 8);
284+
GCstr* str = lj_str_newlit(L, "MetaName");
285285
cTValue* val = lj_tab_getstr(mt, str);
286286
lj_str_free(G(L), str);
287287

@@ -297,6 +297,7 @@ LUALIB_API void luaL_checkany(lua_State *L, int idx)
297297

298298
LUA_API const char *lua_typename(lua_State *L, int t, int stackpos)
299299
{
300+
printf("TypeName call! %p %i %i\n", L, t, stackpos);
300301
if (stackpos && t == 7)
301302
return GMODLUA_GetUserType(L, stackpos);
302303

0 commit comments

Comments
 (0)