#include <stdio.h>
#include <stdlib.h>
#include "SDL.h"
#include "SDL_revision.h"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 24 of file testver.c.
References SDL_version::major, SDL_version::minor, SDL_version::patch, SDL_GetRevision, SDL_GetRevisionNumber, SDL_GetVersion, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogSetPriority, SDL_Quit, SDL_REVISION, SDL_REVISION_NUMBER, and SDL_VERSION.
32 #if SDL_VERSION_ATLEAST(2, 0, 0) 33 SDL_Log(
"Compiled with SDL 2.0 or newer\n");
35 SDL_Log(
"Compiled with SDL older than 2.0\n");
38 SDL_Log(
"Compiled version: %d.%d.%d.%d (%s)\n",
42 SDL_Log(
"Linked version: %d.%d.%d.%d (%s)\n",
#define SDL_REVISION_NUMBER
#define SDL_VERSION(x)
Macro to determine SDL version program was compiled against.
Information the version of SDL in use.
#define SDL_GetRevisionNumber
#define SDL_LogSetPriority