Blame lpprint.h

Packit 909456
/*
Packit 909456
** $Id: lpprint.h,v 1.2 2015/06/12 18:18:08 roberto Exp $
Packit 909456
*/
Packit 909456
Packit 909456
Packit 909456
#if !defined(lpprint_h)
Packit 909456
#define lpprint_h
Packit 909456
Packit 909456
Packit 909456
#include "lptree.h"
Packit 909456
#include "lpvm.h"
Packit 909456
Packit 909456
Packit 909456
#if defined(LPEG_DEBUG)
Packit 909456
Packit 909456
void printpatt (Instruction *p, int n);
Packit 909456
void printtree (TTree *tree, int ident);
Packit 909456
void printktable (lua_State *L, int idx);
Packit 909456
void printcharset (const byte *st);
Packit 909456
void printcaplist (Capture *cap, Capture *limit);
Packit 909456
void printinst (const Instruction *op, const Instruction *p);
Packit 909456
Packit 909456
#else
Packit 909456
Packit 909456
#define printktable(L,idx)  \
Packit 909456
	luaL_error(L, "function only implemented in debug mode")
Packit 909456
#define printtree(tree,i)  \
Packit 909456
	luaL_error(L, "function only implemented in debug mode")
Packit 909456
#define printpatt(p,n)  \
Packit 909456
	luaL_error(L, "function only implemented in debug mode")
Packit 909456
Packit 909456
#endif
Packit 909456
Packit 909456
Packit 909456
#endif
Packit 909456