aboutsummaryrefslogtreecommitdiffstats
path: root/al/debug.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-01 19:11:26 -0700
committerChris Robinson <[email protected]>2023-05-01 19:11:26 -0700
commite1b573284b649c6fef42ab5b6ca51978c4a1329a (patch)
tree2bd2c30bebf142c969560a069417ceba57d4a953 /al/debug.h
parentbb08a416f1b0e31292b896f2f8845e365daee6b1 (diff)
Implement pushing/popping debug groups
Diffstat (limited to 'al/debug.h')
-rw-r--r--al/debug.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/al/debug.h b/al/debug.h
index c2147cf4..8f83fd5e 100644
--- a/al/debug.h
+++ b/al/debug.h
@@ -13,6 +13,7 @@ using uint = unsigned int;
*/
constexpr uint8_t MaxDebugLoggedMessages{64};
constexpr uint16_t MaxDebugMessageLength{1024};
+constexpr uint8_t MaxDebugGroupDepth{64};
constexpr uint DebugSourceBase{0};
@@ -33,9 +34,11 @@ enum class DebugType : uint8_t {
Portability,
Performance,
Marker,
+ PushGroup,
+ PopGroup,
Other,
};
-constexpr uint DebugTypeCount{7};
+constexpr uint DebugTypeCount{9};
constexpr uint DebugSeverityBase{DebugTypeBase + DebugTypeCount};
enum class DebugSeverity : uint8_t {