i have these GNU macro:
#if defined __GNUC__
#define EVENT [[gnu::weak]]
#elif defined __clang__
#define EVENT [[llvm::weak]]
#endif
#define IS_EVENT_DEFINED(sym) (static_cast<bool>(sym))
these macro works fine. and help me test if the function(even with a prototype) was defined.
my problem is can i convert
[[gnu::weak]]
to Visual Studio code(for be compatible)?
because the Visual Studio don't have 'weak'