From 8aae69055a8af1d5468a06ea322f99d770dc1f6e 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; }