We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bce2d4 commit c9b4779Copy full SHA for c9b4779
include/CodeVirtualizer/MarcosGuard.hpp
@@ -76,4 +76,12 @@ namespace CodeVirtualizer
76
CV_MAKE_MACROS_GUARD_DEF(FALCON_TINY)
77
}
78
79
-#define CV_PLACE_GUARD_MACROS(name) CodeVirtualizer::MarcosGuard##name cv_guard##__COUNTER__;
+// Main Macro for Creating Unique Guard Macros
80
+#define CV_PLACE_GUARD_MACROS(name) CV_PLACE_GUARD_MACROS_IMPL(name, __COUNTER__)
81
+
82
+// Helper Macro for Implementing the Unique Guard Macros
83
+#define CV_PLACE_GUARD_MACROS_IMPL(name, index) CV_PLACE_GUARD_MACROS_IMPL2(name, index)
84
85
+// Additional Level of Indirection to Force Expansion
86
+#define CV_PLACE_GUARD_MACROS_IMPL2(name, index) CodeVirtualizer::MarcosGuard##name cv_guard##index;
87
0 commit comments