New function 'lua_printvalue' for internal debugging

This commit is contained in:
Roberto Ierusalimschy
2024-12-02 11:19:03 -03:00
parent 62afbc6bfc
commit 04e495403b
2 changed files with 43 additions and 4 deletions

View File

@@ -79,6 +79,13 @@ LUAI_FUNC int lua_checkmemory (lua_State *L);
struct GCObject;
LUAI_FUNC void lua_printobj (lua_State *L, struct GCObject *o);
/*
** Function to print a value
*/
struct TValue;
LUAI_FUNC void lua_printvalue (struct TValue *v);
/*
** Function to print the stack
*/