On iOS, make sure to be notified if you forgot to include <SFML/Main.hpp>

This commit is contained in:
Ceylo 2018-04-09 00:19:55 +02:00 committed by Lukas Dürrenberger
parent bc570b22bf
commit 8d96976e4b

View File

@ -56,6 +56,10 @@ namespace
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
+ (SFAppDelegate*)getInstance + (SFAppDelegate*)getInstance
{ {
NSAssert(delegateInstance,
@"SFAppDelegate instance is nil, this means SFML was not properly initialized. "
"Make sure that the file defining your main() function includes <SFML/Main.hpp>");
return delegateInstance; return delegateInstance;
} }