]> granicus.if.org Git - nethack/commit
add a macro to ease conditional testing based on active window port
authornhmall <nhmall@nethack.org>
Sun, 2 Dec 2018 14:56:44 +0000 (09:56 -0500)
committernhmall <nhmall@nethack.org>
Sun, 2 Dec 2018 14:56:44 +0000 (09:56 -0500)
commit4a4b3fb8f15a18175806b53499b1d87dc175f3d0
tree5ec7ffcbf16db634a67c8254cd3d8717f4affc20
parent38b31dd9ca833dcc2a863af35eb92ce64d217ca8
add a macro to ease conditional testing based on active window port

Add WINDOWPORT macro

example:
if (WINDOWPORT("tty"))
pline("Look at me, I'm on tty at the moment!");
include/winprocs.h
src/bones.c
src/cmd.c
src/files.c
src/restore.c
src/save.c
sys/share/pcmain.c
sys/share/pcunix.c
sys/share/unixtty.c
sys/winnt/winnt.c