include/SDL_main.h
author David Ludwig <dludwig@pobox.com>
Tue, 13 Aug 2013 20:28:10 -0400
changeset 8480 733f78caa9cb
parent 8477 ad08f0d710f3
child 8500 f25ef28d61e8
permissions -rw-r--r--
WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
     1
/*
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5320
diff changeset
     2
  Simple DirectMedia Layer
6885
700f1b25f77f Happy New Year!
Sam Lantinga <slouken@libsdl.org>
parents: 6138
diff changeset
     3
  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
     4
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5320
diff changeset
     5
  This software is provided 'as-is', without any express or implied
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5320
diff changeset
     6
  warranty.  In no event will the authors be held liable for any damages
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5320
diff changeset
     7
  arising from the use of this software.
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
     8
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5320
diff changeset
     9
  Permission is granted to anyone to use this software for any purpose,
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5320
diff changeset
    10
  including commercial applications, and to alter it and redistribute it
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5320
diff changeset
    11
  freely, subject to the following restrictions:
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    12
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5320
diff changeset
    13
  1. The origin of this software must not be misrepresented; you must not
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5320
diff changeset
    14
     claim that you wrote the original software. If you use this software
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5320
diff changeset
    15
     in a product, an acknowledgment in the product documentation would be
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5320
diff changeset
    16
     appreciated but is not required.
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5320
diff changeset
    17
  2. Altered source versions must be plainly marked as such, and must not be
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5320
diff changeset
    18
     misrepresented as being the original software.
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5320
diff changeset
    19
  3. This notice may not be removed or altered from any source distribution.
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    20
*/
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    21
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    22
#ifndef _SDL_main_h
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    23
#define _SDL_main_h
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    24
1356
67114343400d *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1312
diff changeset
    25
#include "SDL_stdinc.h"
67114343400d *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1312
diff changeset
    26
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    27
/**
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    28
 *  \file SDL_main.h
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 6885
diff changeset
    29
 *
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    30
 *  Redefine main() on some platforms so that it is called by SDL.
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    31
 */
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    32
5320
e4add1082c2e Allow you to override SDL's main override
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    33
#ifndef SDL_MAIN_HANDLED
7335
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    34
#if defined(__WIN32__)
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    35
/* On Windows SDL provides WinMain(), which parses the command line and passes
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    36
   the arguments to your main function.
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    37
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    38
   If you provide your own WinMain(), you may define SDL_MAIN_HANDLED
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    39
 */
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    40
#define SDL_MAIN_AVAILABLE
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    41
8480
733f78caa9cb WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code
David Ludwig <dludwig@pobox.com>
parents: 8477
diff changeset
    42
#elif defined(__WINRT__)
733f78caa9cb WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code
David Ludwig <dludwig@pobox.com>
parents: 8477
diff changeset
    43
/* On Windows RT, SDL provides a main function that initializes CoreApplication,
733f78caa9cb WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code
David Ludwig <dludwig@pobox.com>
parents: 8477
diff changeset
    44
   creating an instance of IFrameworkView in the process.
733f78caa9cb WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code
David Ludwig <dludwig@pobox.com>
parents: 8477
diff changeset
    45
733f78caa9cb WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code
David Ludwig <dludwig@pobox.com>
parents: 8477
diff changeset
    46
   Please note that #include'ing SDL_main.h is not enough to get a main()
733f78caa9cb WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code
David Ludwig <dludwig@pobox.com>
parents: 8477
diff changeset
    47
   function working.  The file, src/main/windowsrt/SDL_WinRT_main.cpp, or a copy
733f78caa9cb WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code
David Ludwig <dludwig@pobox.com>
parents: 8477
diff changeset
    48
   of it, must be compiled into the app itself.
733f78caa9cb WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code
David Ludwig <dludwig@pobox.com>
parents: 8477
diff changeset
    49
*/
733f78caa9cb WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code
David Ludwig <dludwig@pobox.com>
parents: 8477
diff changeset
    50
#define SDL_MAIN_NEEDED
733f78caa9cb WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code
David Ludwig <dludwig@pobox.com>
parents: 8477
diff changeset
    51
7335
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    52
#elif defined(__IPHONEOS__)
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    53
/* On iOS SDL provides a main function that creates an application delegate
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    54
   and starts the iOS application run loop.
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    55
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    56
   See src/video/uikit/SDL_uikitappdelegate.m for more details.
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    57
 */
5320
e4add1082c2e Allow you to override SDL's main override
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    58
#define SDL_MAIN_NEEDED
7335
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    59
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    60
#elif defined(__ANDROID__)
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    61
/* On Android SDL provides a Java class in SDLActivity.java that is the
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    62
   main activity entry point.
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    63
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    64
   See README-android.txt for more details on extending that class.
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    65
 */
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    66
#define SDL_MAIN_NEEDED
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    67
5320
e4add1082c2e Allow you to override SDL's main override
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    68
#endif
7335
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    69
#endif /* SDL_MAIN_HANDLED */
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    70
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    71
#ifdef __cplusplus
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 6885
diff changeset
    72
#define C_LINKAGE   "C"
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    73
#else
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    74
#define C_LINKAGE
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    75
#endif /* __cplusplus */
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    76
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    77
/**
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    78
 *  \file SDL_main.h
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    79
 *
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    80
 *  The application's main() function must be called with C linkage,
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    81
 *  and should be declared like this:
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    82
 *  \code
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    83
 *  #ifdef __cplusplus
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    84
 *  extern "C"
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    85
 *  #endif
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    86
 *  int main(int argc, char *argv[])
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    87
 *  {
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    88
 *  }
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    89
 *  \endcode
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    90
 */
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    91
7335
13b67be8e3af Not using SDLmain on Windows is just fine, don't fail the initialization if the program implements WinMain() and then doesn't call SDL_SetMainReady().
Sam Lantinga <slouken@libsdl.org>
parents: 7281
diff changeset
    92
#if defined(SDL_MAIN_NEEDED) || defined(SDL_MAIN_AVAILABLE)
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 6885
diff changeset
    93
#define main    SDL_main
5320
e4add1082c2e Allow you to override SDL's main override
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    94
#endif
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    95
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    96
/**
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    97
 *  The prototype for the application's main() function
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
    98
 */
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
    99
extern C_LINKAGE int SDL_main(int argc, char *argv[]);
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   100
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   101
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   102
#include "begin_code.h"
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   103
#ifdef __cplusplus
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   104
extern "C" {
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   105
#endif
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   106
7281
cd5516b9263d Added some extra protection to notify the developer if they haven't initialized the application properly.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   107
/*
cd5516b9263d Added some extra protection to notify the developer if they haven't initialized the application properly.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   108
 *  This is called by the real SDL main function to let the rest of the
cd5516b9263d Added some extra protection to notify the developer if they haven't initialized the application properly.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   109
 *  library know that initialization was done properly.
cd5516b9263d Added some extra protection to notify the developer if they haven't initialized the application properly.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   110
 *
cd5516b9263d Added some extra protection to notify the developer if they haven't initialized the application properly.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   111
 *  Calling this yourself without knowing what you're doing can cause
cd5516b9263d Added some extra protection to notify the developer if they haven't initialized the application properly.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   112
 *  crashes and hard to diagnose problems with your application.
cd5516b9263d Added some extra protection to notify the developer if they haven't initialized the application properly.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   113
 */
cd5516b9263d Added some extra protection to notify the developer if they haven't initialized the application properly.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   114
extern DECLSPEC void SDL_SetMainReady(void);
cd5516b9263d Added some extra protection to notify the developer if they haven't initialized the application properly.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   115
5320
e4add1082c2e Allow you to override SDL's main override
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
   116
#ifdef __WIN32__
e4add1082c2e Allow you to override SDL's main override
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
   117
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
   118
/**
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
   119
 *  This can be called to set the application class at startup
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 2859
diff changeset
   120
 */
1895
c121d94672cb SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents: 1466
diff changeset
   121
extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style,
c121d94672cb SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents: 1466
diff changeset
   122
                                            void *hInst);
1466
3c45c578d480 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1402
diff changeset
   123
extern DECLSPEC void SDLCALL SDL_UnregisterApp(void);
1895
c121d94672cb SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents: 1466
diff changeset
   124
5320
e4add1082c2e Allow you to override SDL's main override
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
   125
#endif /* __WIN32__ */
e4add1082c2e Allow you to override SDL's main override
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
   126
e4add1082c2e Allow you to override SDL's main override
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
   127
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   128
#ifdef __cplusplus
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   129
}
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   130
#endif
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   131
#include "close_code.h"
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   132
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
   133
#endif /* _SDL_main_h */
1895
c121d94672cb SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents: 1466
diff changeset
   134
c121d94672cb SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents: 1466
diff changeset
   135
/* vi: set ts=4 sw=4 expandtab: */