#include "xemu/emutools_basicdefs.h"
#include <stdio.h>
#include <SDL_types.h>
#include <SDL_messagebox.h>
#include <limits.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
Go to the source code of this file.
|
#define | VARALIGN MAXALIGNED |
|
#define | XEPEXIT(n) XEMUEXIT(n) |
|
#define | DIRSEP DIRSEP_STR |
|
#define | DATADIR "/usr/local/lib/xep128" |
|
#define | DESCRIPTION "Enterprise-128 Emulator" |
|
#define | WINDOW_TITLE "Xep128" |
|
#define | VERSION "0.4" |
|
#define | COPYRIGHT "(C)2015,2016,2020 LGB Gabor Lenart" |
|
#define | PROJECT_PAGE "http://xep128.lgb.hu/" |
|
#define | CONFIG_USE_LODEPNG |
|
#define | CONFIG_EXDOS_SUPPORT |
|
#define | DEFAULT_CPU_CLOCK 4000000 |
|
#define | COMBINED_ROM_FN "combined.rom" |
|
#define | SDCARD_IMG_FN "sdcard.img" |
|
#define | PRINT_OUT_FN "@print.out" |
|
#define | DEFAULT_CONFIG_FILE "@config" |
|
#define | DEFAULT_CONFIG_SAMPLE_FILE "@config-sample" |
|
#define | ERRSTR() strerror(errno) |
|
#define | OSD(...) |
|
#define | _REPORT_WINDOW_(sdlflag, str, ...) |
|
#define | INFO_WINDOW(...) _REPORT_WINDOW_(SDL_MESSAGEBOX_INFORMATION, "INFO", __VA_ARGS__) |
|
#define | WARNING_WINDOW(...) _REPORT_WINDOW_(SDL_MESSAGEBOX_WARNING, "WARNING", __VA_ARGS__) |
|
#define | ERROR_WINDOW(...) _REPORT_WINDOW_(SDL_MESSAGEBOX_ERROR, "ERROR", __VA_ARGS__) |
|
#define | FATAL(...) do { ERROR_WINDOW(__VA_ARGS__); XEPEXIT(1); } while(0) |
|
#define | CHECK_MALLOC(p) |
|
#define | QUESTION_WINDOW(items, msg) _sdl_emu_secured_modal_box_(items, msg) |
|
#define | ERRSTR() strerror(errno) |
|
◆ _REPORT_WINDOW_
#define _REPORT_WINDOW_ |
( |
|
sdlflag, |
|
|
|
str, |
|
|
|
... |
|
) |
| |
Value: do { \
char _buf_for_win_msg_[4096]; \
CHECK_SNPRINTF(snprintf(_buf_for_win_msg_, sizeof _buf_for_win_msg_, __VA_ARGS__), sizeof _buf_for_win_msg_); \
DEBUGPRINT(str
": %s" NL, _buf_for_win_msg_); \
_sdl_emu_secured_message_box_(sdlflag, _buf_for_win_msg_); \
} while(0)
Definition at line 108 of file xep128.h.
◆ CHECK_MALLOC
#define CHECK_MALLOC |
( |
|
p | ) |
|
Value: do { \
if (!p)
FATAL(
"Memory allocation error. Not enough memory?"); \
} while(0)
Definition at line 119 of file xep128.h.
◆ COMBINED_ROM_FN
#define COMBINED_ROM_FN "combined.rom" |
◆ CONFIG_EXDOS_SUPPORT
#define CONFIG_EXDOS_SUPPORT |
◆ CONFIG_USE_LODEPNG
#define CONFIG_USE_LODEPNG |
◆ COPYRIGHT
#define COPYRIGHT "(C)2015,2016,2020 LGB Gabor Lenart" |
◆ DATADIR
#define DATADIR "/usr/local/lib/xep128" |
◆ DEFAULT_CONFIG_FILE
#define DEFAULT_CONFIG_FILE "@config" |
◆ DEFAULT_CONFIG_SAMPLE_FILE
#define DEFAULT_CONFIG_SAMPLE_FILE "@config-sample" |
◆ DEFAULT_CPU_CLOCK
#define DEFAULT_CPU_CLOCK 4000000 |
◆ DESCRIPTION
#define DESCRIPTION "Enterprise-128 Emulator" |
◆ DIRSEP
◆ ERROR_WINDOW
#define ERROR_WINDOW |
( |
|
... | ) |
_REPORT_WINDOW_(SDL_MESSAGEBOX_ERROR, "ERROR", __VA_ARGS__) |
◆ ERRSTR [1/2]
#define ERRSTR |
( |
| ) |
strerror(errno) |
◆ ERRSTR [2/2]
#define ERRSTR |
( |
| ) |
strerror(errno) |
◆ FATAL
◆ INFO_WINDOW
#define INFO_WINDOW |
( |
|
... | ) |
_REPORT_WINDOW_(SDL_MESSAGEBOX_INFORMATION, "INFO", __VA_ARGS__) |
◆ OSD
Value: do { \
char _buf_for_win_msg_[4096]; \
CHECK_SNPRINTF(snprintf(_buf_for_win_msg_, sizeof _buf_for_win_msg_, __VA_ARGS__), sizeof _buf_for_win_msg_); \
DEBUGPRINT(
"OSD: %s" NL, _buf_for_win_msg_); \
osd_notification(_buf_for_win_msg_); \
} while(0)
Definition at line 100 of file xep128.h.
◆ PRINT_OUT_FN
#define PRINT_OUT_FN "@print.out" |
◆ PROJECT_PAGE
#define PROJECT_PAGE "http://xep128.lgb.hu/" |
◆ QUESTION_WINDOW
◆ SDCARD_IMG_FN
#define SDCARD_IMG_FN "sdcard.img" |
◆ VARALIGN
◆ VERSION
◆ WARNING_WINDOW
#define WARNING_WINDOW |
( |
|
... | ) |
_REPORT_WINDOW_(SDL_MESSAGEBOX_WARNING, "WARNING", __VA_ARGS__) |
◆ WINDOW_TITLE
#define WINDOW_TITLE "Xep128" |
◆ XEPEXIT
◆ _sdl_emu_secured_message_box_()
int _sdl_emu_secured_message_box_ |
( |
Uint32 |
sdlflag, |
|
|
const char * |
msg |
|
) |
| |
◆ _sdl_emu_secured_modal_box_()
int _sdl_emu_secured_modal_box_ |
( |
const char * |
items_in, |
|
|
const char * |
msg |
|
) |
| |
◆ osd_notification()
void osd_notification |
( |
const char * |
s | ) |
|
◆ debug_fp