aboutsummaryrefslogtreecommitdiffstats
path: root/al/debug.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-04-30 17:46:18 -0700
committerChris Robinson <[email protected]>2023-04-30 17:46:18 -0700
commit22077687cf4b9fdfd29d78debc2daf044deee81d (patch)
treefc9aab402ea9e33f7cec2e1ef1dfa98203665578 /al/debug.h
parentf2a0df87916de7b9fa8b65a52814c9a09fc6bee9 (diff)
Implement debug log storage
Diffstat (limited to 'al/debug.h')
-rw-r--r--al/debug.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/al/debug.h b/al/debug.h
index a268f690..23b0ca1b 100644
--- a/al/debug.h
+++ b/al/debug.h
@@ -1,4 +1,13 @@
#ifndef AL_DEBUG_H
#define AL_DEBUG_H
+#include <stdint.h>
+
+
+/* Somewhat arbitrary. Avoid letting it get out of control if the app enables
+ * logging but never reads it.
+ */
+constexpr uint8_t MaxDebugLoggedMessages{64};
+constexpr uint16_t MaxDebugMessageLength{1024};
+
#endif /* AL_DEBUG_H */