robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

robinmerge: 9a29622b3b00ddb601

master
641 B32 linesraw
1
2#if !defined(lpprint_h)
3#define lpprint_h
4
5
6#include "lptree.h"
7#include "lpvm.h"
8
9
10#if defined(LPEG_DEBUG)
11
12void printpatt (Instruction *p);
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);
18
19#else
20
21#define printktable(L,idx)  \
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
28#endif
29
30
31#endif
32