From c18fe57e543dabb828ad64dc2d45d66fa0fae429 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 13 May 2002 10:10:04 -0300 Subject: [PATCH] quick-and-dirty function to print code (for debugging Lua) --- ltests.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ltests.c b/ltests.c index feef9e52..69b82dd7 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 1.119 2002/05/02 13:06:20 roberto Exp roberto $ +** $Id: ltests.c,v 1.120 2002/05/06 19:05:10 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -162,6 +162,18 @@ static char *buildop (Proto *p, int pc, char *buff) { } +#if 0 +void luaI_printcode (Proto *pt, int size) { + int pc; + for (pc=0; pc