Closed aguycalled closed 1 year ago
Is there any way (without storing the return value of the init function for future use) to determine whether the library has been correctly initialized?
Thanks.
How about defining a global flag?
std::atomic<bool> g_is_mcl_initialized; bool is_mcl_initialized() { return g_is_mcl_initialized; } if (initPairing(...)) { g_is_mcl_initialized = true; }
Is there any way (without storing the return value of the init function for future use) to determine whether the library has been correctly initialized?
Thanks.