summaryrefslogtreecommitdiff
path: root/support/ltx2x/l2xiidbg.h
diff options
context:
space:
mode:
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