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!");
This commit is contained in:
@@ -1279,7 +1279,7 @@ boolean uncomp;
|
||||
int i = 0;
|
||||
int f;
|
||||
#ifdef TTY_GRAPHICS
|
||||
boolean istty = !strncmpi(windowprocs.name, "tty", 3);
|
||||
boolean istty = WINDOWPORT("tty");
|
||||
#endif
|
||||
|
||||
Strcpy(cfn, filename);
|
||||
|
||||
Reference in New Issue
Block a user