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 1b1ae8e48e
commit 8aae69055a

View File

@ -56,6 +56,10 @@ namespace
////////////////////////////////////////////////////////////
+ (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;
}