diff options
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 14 |
1 files changed, 13 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 1.119 2002/05/02 13:06:20 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.120 2002/05/06 19:05:10 roberto Exp roberto $ |
| 3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -162,6 +162,18 @@ static char *buildop (Proto *p, int pc, char *buff) { | |||
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | 164 | ||
| 165 | #if 0 | ||
| 166 | void luaI_printcode (Proto *pt, int size) { | ||
| 167 | int pc; | ||
| 168 | for (pc=0; pc<size; pc++) { | ||
| 169 | char buff[100]; | ||
| 170 | printf("%s\n", buildop(pt, pc, buff)); | ||
| 171 | } | ||
| 172 | printf("-------\n"); | ||
| 173 | } | ||
| 174 | #endif | ||
| 175 | |||
| 176 | |||
| 165 | static int listcode (lua_State *L) { | 177 | static int listcode (lua_State *L) { |
| 166 | int pc; | 178 | int pc; |
| 167 | Proto *p; | 179 | Proto *p; |
