|
@@ -70,7 +70,7 @@ protected:
|
|
|
|
|
|
|
|
// Macro for defining a main function which creates a Context and the application, then runs it
|
|
// Macro for defining a main function which creates a Context and the application, then runs it
|
|
|
#ifndef IOS
|
|
#ifndef IOS
|
|
|
-#define DEFINE_APPLICATION_MAIN(className) \
|
|
|
|
|
|
|
+#define URHO3D_DEFINE_APPLICATION_MAIN(className) \
|
|
|
int RunApplication() \
|
|
int RunApplication() \
|
|
|
{ \
|
|
{ \
|
|
|
Urho3D::SharedPtr<Urho3D::Context> context(new Urho3D::Context()); \
|
|
Urho3D::SharedPtr<Urho3D::Context> context(new Urho3D::Context()); \
|
|
@@ -80,7 +80,7 @@ int RunApplication() \
|
|
|
URHO3D_DEFINE_MAIN(RunApplication());
|
|
URHO3D_DEFINE_MAIN(RunApplication());
|
|
|
#else
|
|
#else
|
|
|
// On iOS we will let this function exit, so do not hold the context and application in SharedPtr's
|
|
// On iOS we will let this function exit, so do not hold the context and application in SharedPtr's
|
|
|
-#define DEFINE_APPLICATION_MAIN(className) \
|
|
|
|
|
|
|
+#define URHO3D_DEFINE_APPLICATION_MAIN(className) \
|
|
|
int RunApplication() \
|
|
int RunApplication() \
|
|
|
{ \
|
|
{ \
|
|
|
Urho3D::Context* context = new Urho3D::Context(); \
|
|
Urho3D::Context* context = new Urho3D::Context(); \
|