From 8d96976e4b3ce71ed63e629b8abf4d9da1d89aa2 Mon Sep 17 00:00:00 2001 From: Ceylo Date: Mon, 9 Apr 2018 00:19:55 +0200 Subject: [PATCH] On iOS, make sure to be notified if you forgot to include --- src/SFML/Window/iOS/SFAppDelegate.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SFML/Window/iOS/SFAppDelegate.mm b/src/SFML/Window/iOS/SFAppDelegate.mm index 4177eb3d6..ea69f41ed 100644 --- a/src/SFML/Window/iOS/SFAppDelegate.mm +++ b/src/SFML/Window/iOS/SFAppDelegate.mm @@ -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 "); + return delegateInstance; }