source: buchla-emu/emu/all.h@ 9373f5e

Last change on this file since 9373f5e was ff8d800, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Added SDL2 support.

  • Property mode set to 100644
File size: 524 bytes
Line 
1#include <stdbool.h>
2#include <stddef.h>
3#include <stdint.h>
4#include <stdio.h>
5#include <unistd.h>
6
7#include <m68k.h>
8
9#include <SDL2/SDL.h>
10
11#define inf(...) SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__);
12#define err(...) SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__);
13
14#define fail(...) { \
15 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__); \
16 exit(1); \
17}
18
19extern bool cpu_verbose;
20extern bool sdl_verbose;
21
22extern void sdl_init(void);
23extern void sdl_quit(void);
24
25extern void cpu_loop(void);
Note: See TracBrowser for help on using the repository browser.