fix gpertools initializer

This commit is contained in:
tqcq
2024-04-29 22:07:03 +08:00
parent 2c07bea7cb
commit 36a3c71449
2 changed files with 6 additions and 2 deletions

View File

@ -63,7 +63,10 @@ private:
namespace { \
static void google_init_module_##name() { body; } \
GoogleInitializer google_initializer_module_##name(#name, google_init_module_##name, NULL); \
__attribute__((constructor)) static void EnsureConstructorRunsBeforeMain() { google_init_module_##name().name(); } \
__attribute__((constructor)) static void EnsureConstructorRunsBeforeMain() \
{ \
google_initializer_module_##name().name(); \
} \
}
#define REGISTER_MODULE_DESTRUCTOR(name, body) \