You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lpprint.h 731B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. ** $Id: lpprint.h,v 1.2 2015/06/12 18:18:08 roberto Exp $
  3. */
  4. #if !defined(lpprint_h)
  5. #define lpprint_h
  6. #include "lptree.h"
  7. #include "lpvm.h"
  8. #if defined(LPEG_DEBUG)
  9. void printpatt (Instruction *p, int n);
  10. void printtree (TTree *tree, int ident);
  11. void printktable (lua_State *L, int idx);
  12. void printcharset (const byte *st);
  13. void printcaplist (Capture *cap, Capture *limit);
  14. void printinst (const Instruction *op, const Instruction *p);
  15. #else
  16. #define printktable(L,idx) \
  17. luaL_error(L, "function only implemented in debug mode")
  18. #define printtree(tree,i) \
  19. luaL_error(L, "function only implemented in debug mode")
  20. #define printpatt(p,n) \
  21. luaL_error(L, "function only implemented in debug mode")
  22. #endif
  23. #endif