From 35cf3a1cd1d0586aadbb0dc68c43bab09a966bae Mon Sep 17 00:00:00 2001 From: lash Date: Sun, 1 Dec 2024 18:41:28 +0000 Subject: [PATCH] Add debug label test, capability debug flag --- debug/cap.go | 5 +++++ debug/db_yes.go | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 debug/cap.go diff --git a/debug/cap.go b/debug/cap.go new file mode 100644 index 0000000..458bb48 --- /dev/null +++ b/debug/cap.go @@ -0,0 +1,5 @@ +package debug + +var ( + DebugCap uint32 +) diff --git a/debug/db_yes.go b/debug/db_yes.go index fa8186e..c323366 100644 --- a/debug/db_yes.go +++ b/debug/db_yes.go @@ -37,6 +37,10 @@ var ( } ) +func init() { + DebugCap |= 1 +} + func typToString(v common.DataTyp) string { return dbTypStr[v] }