Annotation of hatari/src/includes/main.h, revision 1.1.1.27

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.27! root       22: #if defined(_MSC_VER)
        !            23: #include "vs-fix.h"
        !            24: #endif
        !            25: 
1.1.1.17  root       26: #if __GNUC__ >= 3
                     27: # define likely(x)      __builtin_expect (!!(x), 1)
                     28: # define unlikely(x)    __builtin_expect (!!(x), 0)
                     29: #else
                     30: # define likely(x)      (x)
                     31: # define unlikely(x)    (x)
1.1       root       32: #endif
                     33: 
1.1.1.26  root       34: /* avoid warnings with variables used only in asserts */
                     35: #ifdef NDEBUG
                     36: # define ASSERT_VARIABLE(x) (void)(x)
                     37: #else
                     38: # define ASSERT_VARIABLE(x) assert(x)
                     39: #endif
                     40: 
1.1.1.12  root       41: #ifdef WIN32
                     42: #define PATHSEP '\\'
                     43: #else
                     44: #define PATHSEP '/'
                     45: #endif
                     46: 
1.1       root       47: #define CALL_VAR(func)  { ((void(*)(void))func)(); }
                     48: 
1.1.1.27! root       49: #ifndef ARRAY_SIZE
        !            50: #define ARRAY_SIZE(x) (int)(sizeof(x)/sizeof(x[0]))
1.1.1.25  root       51: #endif
1.1       root       52: 
1.1.1.4   root       53: /* 68000 operand sizes */
1.1       root       54: #define SIZE_BYTE  1
                     55: #define SIZE_WORD  2
                     56: #define SIZE_LONG  4
                     57: 
1.1.1.19  root       58: /* The 8 MHz CPU frequency */
                     59: #define CPU_FREQ   8012800
1.1.1.15  root       60: 
                     61: extern bool bQuitProgram;
                     62: 
                     63: extern bool Main_PauseEmulation(bool visualize);
                     64: extern bool Main_UnPauseEmulation(void);
1.1.1.25  root       65: extern void Main_RequestQuit(int exitval);
1.1.1.20  root       66: extern void Main_SetRunVBLs(Uint32 vbls);
1.1.1.25  root       67: extern bool Main_SetVBLSlowdown(int factor);
1.1.1.12  root       68: extern void Main_WaitOnVbl(void);
1.1.1.26  root       69: extern void Main_WarpMouse(int x, int y, bool restore);
1.1.1.9   root       70: extern void Main_EventHandler(void);
1.1.1.20  root       71: extern void Main_SetTitle(const char *title);
1.1       root       72: 
1.1.1.6   root       73: #endif /* ifndef HATARI_MAIN_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.