Function 'printobj' in 'ltests.c' made public

It helps to have this function available for debugging.
This commit is contained in:
Roberto Ierusalimschy
2020-07-27 11:24:03 -03:00
parent a6da1472c0
commit 8c7c9ea065
2 changed files with 11 additions and 1 deletions

View File

@@ -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) {
int r1 = testobjref1(g, f, t);
if (!r1) {