33 PIA_RETURN_RESULT_WITH_REPORT(ResultNotInitialized, "PiaCommon is not initialized."); \
34 } \
35 if (!IsInSetupMode()) \
36 { \
37 PIA_RETURN_RESULT_WITH_REPORT(ResultInvalidState, "Singleton must be created between nn::pia::common::BeginSetup() and nn::pia::common::EndSetup()."); \
38 } \
39 if (s_pInstance) \
40 { \
41 PIA_RETURN_RESULT_WITH_REPORT(ResultAlreadyExists, "Singleton is already created."); \