}
#ifdef __EMSCRIPTEN__
-// A2P = Argument to Pointer
+/* A2P = Argument to Pointer */
#define A2P &
-// P2V = Pointer to Void
+/* P2V = Pointer to Void */
#define P2V (void *)
#define DECLCB(ret_type, name, fn_args, fmt, ...) \
ret_type name fn_args { \
#define DECL(name, args) \
void name args;
-// void DECLCB(shim_init_nhwindows,(int *argcp, char **argv), "pp", argcp, argv)
VSTUB(shim_init_nhwindows,(int *argcp, char **argv))
VSTUB(shim_player_selection,(void))
VSTUB(shim_askname,(void))
VSTUB(shim_display_nhwindow,(winid a, BOOLEAN_P b))
VSTUB(shim_destroy_nhwindow,(winid a))
VDECLCB(shim_curs,(winid a, int x, int y), "viii", A2P a, A2P x, A2P y)
-// VSTUB(shim_curs,(winid a, int x, int y))
-// DECL(shim_putstr,(winid w, int attr, const char *str))
VDECLCB(shim_putstr,(winid w, int attr, const char *str), "viis", A2P w, A2P attr, P2V str)
VSTUB(shim_display_file,(const char *a, BOOLEAN_P b))
VSTUB(shim_start_menu,(winid w, unsigned long mbehavior))
VSTUB(shim_wait_synch,(void))
VSTUB(shim_cliparound,(int a, int b))
VSTUB(shim_update_positionbar,(char *a))
-// DECL(shim_print_glyph,(winid w, XCHAR_P x, XCHAR_P y, int glyph, int bkglyph))
VDECLCB(shim_print_glyph,(winid w, int x, int y, int glyph, int bkglyph), "viiiii", A2P w, A2P x, A2P y, A2P glyph, A2P bkglyph)
-// DECL(shim_raw_print,(const char *str))
VDECLCB(shim_raw_print,(const char *str), "vs", P2V str)
VSTUB(shim_raw_print_bold,(const char *a))
int STUB(shim_nhgetch,0,(void))
genl_can_suspend_yes,
};
-// void shim_print_glyph(winid w, XCHAR_P x, XCHAR_P y, int glyph, int bkglyph) {
-// /* map glyph to character and color */
-// // (void) mapglyph(glyph, &ch, &color, &special, x, y, 0);
-
-// fprintf(stdout, "shim_print_glyph (%d,%d): %c\n", x,y,(char)glyph);
-// fflush(stdout);
-// }
-
-// void shim_raw_print(const char *str) {
-// fprintf(stdout, "shim_raw_print: %s\n", str);
-// fflush(stdout);
-// }
-
-// void shim_putstr(winid w, int attr, const char *str) {
-// fprintf(stdout, "shim_putstr (win %d): %s\n", w, str);
-// fflush(stdout);
-// }
-
#endif /* SHIM_GRAPHICS */
\ No newline at end of file