include/SDL_quit.h
changeset 10638 d11daa346140
parent 9998 f67cf37e9cd4
child 10737 3406a0f8b041
equal deleted inserted replaced
10637:5e3ac176d5a8 10638:d11daa346140
    23  *  \file SDL_quit.h
    23  *  \file SDL_quit.h
    24  *
    24  *
    25  *  Include file for SDL quit event handling.
    25  *  Include file for SDL quit event handling.
    26  */
    26  */
    27 
    27 
    28 #ifndef _SDL_quit_h
    28 #ifndef SDL_quit_h_
    29 #define _SDL_quit_h
    29 #define SDL_quit_h_
    30 
    30 
    31 #include "SDL_stdinc.h"
    31 #include "SDL_stdinc.h"
    32 #include "SDL_error.h"
    32 #include "SDL_error.h"
    33 
    33 
    34 /**
    34 /**
    53 /* There are no functions directly affecting the quit event */
    53 /* There are no functions directly affecting the quit event */
    54 
    54 
    55 #define SDL_QuitRequested() \
    55 #define SDL_QuitRequested() \
    56         (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0))
    56         (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0))
    57 
    57 
    58 #endif /* _SDL_quit_h */
    58 #endif /* SDL_quit_h_ */