diff options
Diffstat (limited to 'lpprint.h')
| -rw-r--r-- | lpprint.h | 16 |
1 files changed, 4 insertions, 12 deletions
| @@ -9,24 +9,16 @@ | |||
| 9 | 9 | ||
| 10 | #if defined(LPEG_DEBUG) | 10 | #if defined(LPEG_DEBUG) |
| 11 | 11 | ||
| 12 | void printpatt (Instruction *p); | 12 | void printcaplist (Capture *cap, Capture *fin); |
| 13 | void printtree (TTree *tree, int ident); | ||
| 14 | void printktable (lua_State *L, int idx); | ||
| 15 | void printcharset (const byte *st); | ||
| 16 | void printcaplist (Capture *cap); | ||
| 17 | void printinst (const Instruction *op, const Instruction *p); | 13 | void printinst (const Instruction *op, const Instruction *p); |
| 18 | 14 | ||
| 15 | void opendebug (lua_State *L); | ||
| 16 | |||
| 19 | #else | 17 | #else |
| 20 | 18 | ||
| 21 | #define printktable(L,idx) \ | 19 | #define opendebug(L) { /* no op */ } |
| 22 | luaL_error(L, "function only implemented in debug mode") | ||
| 23 | #define printtree(tree,i) \ | ||
| 24 | luaL_error(L, "function only implemented in debug mode") | ||
| 25 | #define printpatt(p) \ | ||
| 26 | luaL_error(L, "function only implemented in debug mode") | ||
| 27 | 20 | ||
| 28 | #endif | 21 | #endif |
| 29 | 22 | ||
| 30 | |||
| 31 | #endif | 23 | #endif |
| 32 | 24 | ||
