initial libnethack

This commit is contained in:
Adam Powers
2020-08-26 19:22:00 -07:00
parent 5939773971
commit 1aa053d1d8
15 changed files with 3831 additions and 3 deletions

View File

@@ -325,8 +325,15 @@ struct version_info {
unsigned long incarnation; /* actual version number */
unsigned long feature_set; /* bitmask of config settings */
unsigned long entity_count; /* # of monsters and objects */
#ifndef WASM
unsigned long struct_sizes1; /* size of key structs */
unsigned long struct_sizes2; /* size of more key structs */
#else /* WASM */
/* 'long' in WASM is 4 bytes, which is too small to hold version numbers
* such as: VERSION_SANITY2 */
unsigned long long struct_sizes1; /* size of key structs */
unsigned long long struct_sizes2; /* size of more key structs */
#endif /* !WASM */
};
struct savefile_info {
@@ -390,7 +397,7 @@ struct savefile_info {
/* PANICTRACE: Always defined for NH_DEVEL_STATUS != NH_STATUS_RELEASED
but only for supported platforms. */
#ifdef UNIX
#if defined(UNIX) && !defined(WASM)
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
/* see end.c */
#ifndef PANICTRACE
@@ -405,7 +412,7 @@ struct savefile_info {
#if defined(MACOSX)
#define PANICTRACE_LIBC
#endif
#ifdef UNIX
#if defined(UNIX) && !defined(WASM) /* no popen in WASM */
#define PANICTRACE_GDB
#endif