aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-06-07 02:13:10 +0000
committersaturneric <[email protected]>2025-06-07 02:13:10 +0000
commit1d8fd9d277d8cdb400306624ab175ea933dffea9 (patch)
tree0d8b4571e12192bcdfd880c1d1094bd92f9401b3
parentfeat(utils): add secure string duplication functions and update memory handling (diff)
downloadModules-1d8fd9d277d8cdb400306624ab175ea933dffea9.tar.gz
Modules-1d8fd9d277d8cdb400306624ab175ea933dffea9.zip
fix: undef CB_SUCC and CB_ERR before redefinitionHEADmain
- prevent potential macro redefinition warnings - ensure clean slate for macro definitions
-rw-r--r--include/GFModuleCommonUtils.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/GFModuleCommonUtils.hpp b/include/GFModuleCommonUtils.hpp
index b7fa00e..9a4a101 100644
--- a/include/GFModuleCommonUtils.hpp
+++ b/include/GFModuleCommonUtils.hpp
@@ -85,12 +85,14 @@
#define END_EXECUTE_MODULE() }
+#undef CB_SUCC
#define CB_SUCC(event) \
{ \
CB(event, GFGetModuleID(), {{"ret", "0"}}); \
return 0; \
}
+#undef CB_ERR
#define CB_ERR(event, ret, err) \
{ \
CB(event, GFGetModuleID(), \