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