|
|
1.1 root 1: /*
1.1.1.6 root 2: Hatari - main.h
3:
1.1.1.24! root 4: This file is distributed under the GNU General Public License, version 2
! 5: or at your option any later version. Read the file gpl.txt for details.
1.1 root 6: */
7:
1.1.1.6 root 8: #ifndef HATARI_MAIN_H
9: #define HATARI_MAIN_H
1.1 root 10:
1.1.1.17 root 11: #include "config.h"
1.1 root 12:
13: #include <stdio.h>
14: #include <stdlib.h>
15: #include <string.h>
16: #include <math.h>
17: #include <time.h>
18:
1.1.1.8 root 19: #include <SDL_types.h>
1.1.1.15 root 20: #include <stdbool.h>
1.1.1.13 root 21:
1.1.1.17 root 22: #if __GNUC__ >= 3
23: # define likely(x) __builtin_expect (!!(x), 1)
24: # define unlikely(x) __builtin_expect (!!(x), 0)
25: #else
26: # define likely(x) (x)
27: # define unlikely(x) (x)
1.1 root 28: #endif
29:
1.1.1.12 root 30: #ifdef WIN32
31: #define PATHSEP '\\'
32: #else
33: #define PATHSEP '/'
34: #endif
35:
1.1 root 36: #define CALL_VAR(func) { ((void(*)(void))func)(); }
37:
1.1.1.17 root 38: #define ARRAYSIZE(x) (int)(sizeof(x)/sizeof(x[0]))
1.1 root 39:
1.1.1.4 root 40: /* 68000 operand sizes */
1.1 root 41: #define SIZE_BYTE 1
42: #define SIZE_WORD 2
43: #define SIZE_LONG 4
44:
1.1.1.19 root 45: /* The 8 MHz CPU frequency */
46: #define CPU_FREQ 8012800
1.1.1.15 root 47:
48: extern bool bQuitProgram;
49:
50: extern bool Main_PauseEmulation(bool visualize);
51: extern bool Main_UnPauseEmulation(void);
1.1.1.13 root 52: extern void Main_RequestQuit(void);
1.1.1.20 root 53: extern void Main_SetRunVBLs(Uint32 vbls);
1.1.1.12 root 54: extern void Main_WaitOnVbl(void);
1.1.1.9 root 55: extern void Main_WarpMouse(int x, int y);
56: extern void Main_EventHandler(void);
1.1.1.20 root 57: extern void Main_SetTitle(const char *title);
1.1 root 58:
1.1.1.6 root 59: #endif /* ifndef HATARI_MAIN_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.