From 1d8fd9d277d8cdb400306624ab175ea933dffea9 Mon Sep 17 00:00:00 2001 From: saturneric Date: Sat, 7 Jun 2025 04:13:10 +0200 Subject: fix: undef CB_SUCC and CB_ERR before redefinition - prevent potential macro redefinition warnings - ensure clean slate for macro definitions --- include/GFModuleCommonUtils.hpp | 2 ++ 1 file changed, 2 insertions(+) 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(), \ -- cgit v1.2.3