mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
On iOS, make sure to be notified if you forgot to include <SFML/Main.hpp>
This commit is contained in:
parent
1b1ae8e48e
commit
8aae69055a
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user