#define SF_PLATFORM_SYSTEM_APP_ARGS(AppPackageId, SystemClass, AppClass, args) \ static Scaleform::Platform::SystemInitWrapper<SystemClass> SF_SystemClassInstance; \ Scaleform::Platform::AppBase* Scaleform::Platform::AppBase::CreateInstance() \ { SF_SystemClassInstance.Init(); return new AppClass args; } \ void Scaleform::Platform::AppBase::DestroyInstance(Scaleform::Platform::AppBase* app) \ { delete app; SF_SystemClassInstance.Destroy(); } \ const char* Scaleform::Platform::AppBase::GetAppPackageName() \ { return #AppPackageId; }
SF_PLATFORM_SYSTEM_APP_ARGS macro initialize application with specified AppClass and arguments, while using the default Scaleform::System class and allocator for Kernel startup.
Platform.h