aboutsummaryrefslogtreecommitdiff
path: root/lpprint.h
diff options
context:
space:
mode:
Diffstat (limited to 'lpprint.h')
-rw-r--r--lpprint.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/lpprint.h b/lpprint.h
index e8e04e8..e693081 100644
--- a/lpprint.h
+++ b/lpprint.h
@@ -9,24 +9,16 @@
9 9
10#if defined(LPEG_DEBUG) 10#if defined(LPEG_DEBUG)
11 11
12void printpatt (Instruction *p); 12void printcaplist (Capture *cap, Capture *fin);
13void printtree (TTree *tree, int ident);
14void printktable (lua_State *L, int idx);
15void printcharset (const byte *st);
16void printcaplist (Capture *cap);
17void printinst (const Instruction *op, const Instruction *p); 13void printinst (const Instruction *op, const Instruction *p);
18 14
15void 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