summaryrefslogtreecommitdiff
path: root/support/ltx2x/l2xiidbg.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/ltx2x/l2xiidbg.h
Initial commit
Diffstat (limited to 'support/ltx2x/l2xiidbg.h')
-rw-r--r--support/ltx2x/l2xiidbg.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/support/ltx2x/l2xiidbg.h b/support/ltx2x/l2xiidbg.h
new file mode 100644
index 0000000000..f7915cc9b4
--- /dev/null
+++ b/support/ltx2x/l2xiidbg.h
@@ -0,0 +1,22 @@
+/* l2xiidbg.h for debugging LTX2X interpreter code */
+/* BASED ON: idebug.h (unaltered) */
+
+#ifndef idebug_h
+#define idebug_h
+
+extern int DEBUG; /* debugging severity, 0 = no debug */
+extern int Dbasic; /* DEBUG >= Dbasic basic debugging */
+extern int Dtrace; /* DEBUG >= Dtrace debug routine call tree */
+extern int Dscan; /* DEBUG >= Dscan debug scan source buffer */
+extern int Dstack; /* DEBUG >= Dstack debug runtime stack */
+extern int Danalyze; /* DEBUG >= Danalyze debug declarations */
+extern int Dtraceall; /* DEBUG >= Dtraceall debug all code */
+extern char dbuffer[]; /* a buffer for debugging use */
+
+/* debug_print(STRING string); print a debugging string */
+
+ /* entry_debug and exit_debug must be used as a pair */
+/* entry_debug(STRING name); print routine "name-string" at routine entry */
+/* exit_debug(STRING name); print routine "name-string" at routine exit */
+
+#endif