Main.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Copyright (c) Electronic Arts Inc. All rights reserved.
  3. ///////////////////////////////////////////////////////////////////////////////
  4. #include <EABase/eabase.h>
  5. #include <EAMain/EAMain.h>
  6. EA_DISABLE_ALL_VC_WARNINGS()
  7. #include <new>
  8. EA_RESTORE_ALL_VC_WARNINGS()
  9. // Array new is a requirement brought in by EAStdC.
  10. void* operator new[](size_t size, const char* /*pName*/, int /*flags*/, unsigned /*debugFlags*/, const char* /*file*/, int /*line*/)
  11. {
  12. return ::operator new[](size);
  13. }
  14. ///////////////////////////////////////////////////////////////////////////////
  15. // EAMain
  16. //
  17. #if (defined(EA_PLATFORM_MICROSOFT) && !defined(CS_UNDEFINED_STRING) && !EA_WINAPI_FAMILY_PARTITION(EA_WINAPI_PARTITION_DESKTOP))
  18. [Platform::MTAThread]
  19. int main(Platform::Array<Platform::String^>^)
  20. #elif defined(EA_PLATFORM_IPHONE)
  21. extern "C" int iosMain(int, char **)
  22. #else
  23. int main(int, char**)
  24. #endif
  25. {
  26. using namespace EA::EAMain;
  27. Report("Test of EAMain without an entry point has succeeded.\n");
  28. return 0;
  29. }