openMSX
openmsx.hh
Go to the documentation of this file.
1 #ifndef OPENMSX_HH
2 #define OPENMSX_HH
3 
4 #include "build-info.hh"
5 #include <cstdint>
6 
7 #if PLATFORM_ANDROID
8 #include <android/log.h>
9 #define ad_printf(...) __android_log_print(ANDROID_LOG_INFO, "openMSX", __VA_ARGS__)
10 #else
11 #define ad_printf(...)
12 #endif
13 
15 
20 namespace openmsx {
21 
23 using nibble = uint8_t;
24 
26 using byte = uint8_t;
27 
29 using word = uint16_t;
30 
31 
32 #if defined(__GNUC__) && \
33  ((__GNUC__ * 100 + __GNUC_MINOR__ * 10 + __GNUC_PATCHLEVEL__) < 472)
34  // gcc versions before 4.7.2 had a bug in ~unique_ptr(),
35  // see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54351
36  #define UNIQUE_PTR_BUG 1
37 #else
38  #define UNIQUE_PTR_BUG 0
39 #endif
40 
41 } // namespace openmsx
42 
43 #endif
uint8_t byte
8 bit unsigned integer
Definition: openmsx.hh:26
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
uint8_t nibble
4 bit integer
Definition: openmsx.hh:23
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29