Confine use of STATE_NOTFOUND to macros.

This commit is contained in:
Eric S. Raymond 2023-04-08 22:53:06 -04:00
parent 9e9731d59b
commit 1af01ff91f
3 changed files with 5 additions and 4 deletions

View file

@ -61,6 +61,7 @@
#define PROP_IS_STASHED_OR_UNSEEN(obj) (game.objects[obj].prop < 0)
#define PROP_SET_FOUND(obj) (game.objects[obj].prop = STATE_FOUND)
#define PROP_SET_NOT_FOUND(obj) (game.objects[obj].prop = STATE_NOTFOUND)
#define PROP_IS_NOTFOUND2(g, o) (g.objects[o].prop == STATE_NOTFOUND)
#define PROMPT "> "