diff options
Diffstat (limited to 'src/libui_sdl/libui/common/shouldquit.c')
-rw-r--r-- | src/libui_sdl/libui/common/shouldquit.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/libui_sdl/libui/common/shouldquit.c b/src/libui_sdl/libui/common/shouldquit.c deleted file mode 100644 index 4e7aa5c..0000000 --- a/src/libui_sdl/libui/common/shouldquit.c +++ /dev/null @@ -1,22 +0,0 @@ -// 9 may 2015 -#include "../ui.h" -#include "uipriv.h" - -static int defaultOnShouldQuit(void *data) -{ - return 0; -} - -static int (*onShouldQuit)(void *) = defaultOnShouldQuit; -static void *onShouldQuitData; - -void uiOnShouldQuit(int (*f)(void *), void *data) -{ - onShouldQuit = f; - onShouldQuitData = data; -} - -int shouldQuit(void) -{ - return (*onShouldQuit)(onShouldQuitData); -} |