view src/main/dummy/SDL_dummy_main.c @ 1113:39408f59a0f7

In MacOSX, when drag'n'dropping a document on an SDL app, or double-clicking a document associated with the app, the document(s) are passed to SDL_main() as if they were command line arguments. Otherwise, the command line is always empty and there is no way for the app to recover this information.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 11 Aug 2005 00:56:16 +0000
parents 96ba4eab74fb
children 14717b52abc0
line wrap: on
line source


/* Include the SDL main definition header */
#include "SDL_main.h"

#ifdef main
#undef main
int main(int argc, char *argv[])
{
	return(SDL_main(argc, argv));
}
#else
/* Nothing to do on this platform */;
#endif