SDL  2.0
hello.c
Go to the documentation of this file.
1 /*
2  * Copyright 2019 Collabora Ltd.
3  * SPDX-License-Identifier: Zlib
4  * (see "zlib/libpng" in debian/copyright)
5  */
6 
7 #include <SDL.h>
8 
9 int
10 main (int argc, char **argv)
11 {
12  if (SDL_Init(0) != 0) {
13  SDL_Log("SDL_Init: %s", SDL_GetError());
14  return 1;
15  }
16 
17  SDL_Log("Hello, world!");
18  SDL_Quit();
19  return 0;
20 }
#define SDL_GetError
#define SDL_Log
#define SDL_Quit
int main(int argc, char **argv)
Definition: hello.c:10
#define SDL_Init