Skip to content

Commit c9b4779

Browse files
committed
patch
1 parent 9bce2d4 commit c9b4779

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

include/CodeVirtualizer/MarcosGuard.hpp

+9-1
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,12 @@ namespace CodeVirtualizer
7676
CV_MAKE_MACROS_GUARD_DEF(FALCON_TINY)
7777
}
7878

79-
#define CV_PLACE_GUARD_MACROS(name) CodeVirtualizer::MarcosGuard##name cv_guard##__COUNTER__;
79+
// 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

Comments
 (0)