Function 'printobj' in 'ltests.c' made public
It helps to have this function available for debugging.
This commit is contained in:
1 parent
a6da1472c0
commit
8c7c9ea065
2 files changed
+11
-1
No files matched your search
@@ -309,6 +309,10 @@ static void printobj (global_State *g, GCObject *o) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void lua_printobj (lua_State *L, struct GCObject *o) {
|
||||||
|
printobj(G(L), o);
|
||||||
|
}
|
||||||
|
|
||||||
static int testobjref (global_State *g, GCObject *f, GCObject *t) {
|
static int testobjref (global_State *g, GCObject *f, GCObject *t) {
|
||||||
int r1 = testobjref1(g, f, t);
|
int r1 = testobjref1(g, f, t);
|
||||||
if (!r1) {
|
if (!r1) {
|
||||||
|
|||||||
@@ -72,7 +72,13 @@ extern void *l_Trick;
|
|||||||
/*
|
/*
|
||||||
** Function to traverse and check all memory used by Lua
|
** Function to traverse and check all memory used by Lua
|
||||||
*/
|
*/
|
||||||
int lua_checkmemory (lua_State *L);
|
LUAI_FUNC int lua_checkmemory (lua_State *L);
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Function to print an object GC-friendly
|
||||||
|
*/
|
||||||
|
struct GCObject;
|
||||||
|
LUAI_FUNC void lua_printobj (lua_State *L, struct GCObject *o);
|
||||||
|
|
||||||
|
|
||||||
/* test for lock/unlock */
|
/* test for lock/unlock */
|
||||||
|
|||||||
Reference in new issue
Block a user