Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Partial fix for bug #859

Header file update from Ken for improved doxygen output
  • Loading branch information
slouken committed Oct 19, 2009
1 parent 26f1a9d commit d21b208d03d03cbb225db49f0962e2fb2945cccf

File 17 of 38 in d21b208

@@ -25,7 +25,11 @@

#include "SDL_stdinc.h"

/* Redefine main() on some platforms so that it is called by SDL */
/**
* \file SDL_main.h
*
* Redefine main() on some platforms so that it is called by SDL.
*/

#if defined(__WIN32__) || \
(defined(__MWERKS__) && !defined(__BEOS__)) || \
@@ -37,18 +41,26 @@
#define C_LINKAGE
#endif /* __cplusplus */

/* The application's main() function must be called with C linkage,
and should be declared like this:
#ifdef __cplusplus
extern "C"
#endif
int main(int argc, char *argv[])
{
}
/**
* \file SDL_main.h
*
* The application's main() function must be called with C linkage,
* and should be declared like this:
* \code
* #ifdef __cplusplus
* extern "C"
* #endif
* int main(int argc, char *argv[])
* {
* }
* \endcode
*/

#define main SDL_main

/* The prototype for the application's main() function */
/**
* The prototype for the application's main() function
*/
extern C_LINKAGE int SDL_main(int argc, char *argv[]);


@@ -62,7 +74,9 @@ extern "C" {
/* *INDENT-ON* */
#endif

/* This can be called to set the application class at startup */
/**
* This can be called to set the application class at startup
*/
extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style,
void *hInst);
extern DECLSPEC void SDLCALL SDL_UnregisterApp(void);

0 comments on commit d21b208

Please sign in to comment.