]> granicus.if.org Git - nethack/commitdiff
Merge branch 'libnethack' of https://github.com/apowers313/NetHack into libnethack2
authornhmall <nhmall@nethack.org>
Sun, 4 Oct 2020 23:51:37 +0000 (19:51 -0400)
committernhmall <nhmall@nethack.org>
Sun, 4 Oct 2020 23:51:37 +0000 (19:51 -0400)
1  2 
.gitignore
include/global.h
src/rip.c

diff --cc .gitignore
index 366cf938fff5713de124188cdb78bb2731fe6ead,fb74047b9927e121d2d50ea920f7690104cd6e08..aa171205f1bb3b90cdd318d32be700e86f3075b1
@@@ -83,7 -83,14 +83,14 @@@ win/share/oththin.tx
  # end of ms-dos
  
  #libnethack
 -src/nethack.data
 -src/nethack.wasm
 -src/nethack.js
 -src/wasm-data
 +targets/*
 +#test.js
 +#sys/lib/npm-package/build/nethack.js
 +#sys/lib/npm-package/build/nethack.wasm
+ src/libnethack.a
+ /libtest.c
+ /nhlibtest
+ /run.sh
+ /test.js
+ sys/lib/npm-package/build/nethack.js
+ sys/lib/npm-package/build/nethack.wasm
index caa32847b59f7bcb90acebcfe57f895a97bd92be,b3f17e99622c0df4ab343ed1c7383d723b02e4da..4581137ef4c98ed6ff414f9c136befc94f7739e3
@@@ -396,17 -397,14 +403,17 @@@ struct savefile_info 
  
  /* PANICTRACE: Always defined for NH_DEVEL_STATUS != NH_STATUS_RELEASED
     but only for supported platforms. */
- #ifdef UNIX
+ #if defined(UNIX) && !defined(__EMSCRIPTEN__)
  #if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
  /* see end.c */
 +#if !defined(CROSS_TO_WASM)
  #ifndef PANICTRACE
  #define PANICTRACE
 -#endif
 -#endif
 -#endif
 +#endif  /* PANICTRACE */
 +#endif  /* CROSS_TO_WASM */
 +#endif  /* NH_DEVEL_STATUS != NH_STATUS_RELEASED */
 +#endif  /* UNIX */
 +
  /* The following are meaningless if PANICTRACE is not defined: */
  #if defined(__linux__) && defined(__GLIBC__) && (__GLIBC__ >= 2)
  #define PANICTRACE_LIBC
  #if defined(MACOSX)
  #define PANICTRACE_LIBC
  #endif
- #ifdef UNIX
+ #if defined(UNIX) && !defined(__EMSCRIPTEN__) /* no popen in WASM */
 +#if !defined(CROSS_TO_WASM) /* no popen in WASM */
  #define PANICTRACE_GDB
  #endif
 +#endif
  
  /* Supply nethack_enter macro if not supplied by port */
  #ifndef nethack_enter
diff --cc src/rip.c
Simple merge