Skip to content

Commit

Permalink
feat: add support lightuserdata for stack_dump
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <[email protected]>
  • Loading branch information
zhaojh329 committed Jun 10, 2024
1 parent 2f46ead commit 19a2892
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
case LUA_TNUMBER: \
printf("%g", lua_tonumber(L, i)); \
break; \
case LUA_TLIGHTUSERDATA: \
printf("%p", lua_topointer(L, i)); \
break; \
default: \
printf("%s", lua_typename(L, t)); \
break; \
Expand Down

0 comments on commit 19a2892

Please sign in to comment.