34 PIA_RETURN_RESULT_WITH_LOG(ResultNotInitialized, "PiaCommon is not initialized."); \
35 } \
36 if (!IsInSetupMode()) \
37 { \
38 PIA_RETURN_RESULT_WITH_LOG(ResultInvalidState, "Singleton must be created between nn::pia::common::BeginSetup() and nn::pia::common::EndSetup()."); \
39 } \
40 if (s_pInstance) \
41 { \
42 PIA_RETURN_RESULT_WITH_LOG(ResultAlreadyExists, "Singleton is already created."); \
43 } \
44 \
45/* <tt>RootObject::new</tt> is used if this class inherits <tt>RootObject</tt>.*/ \