aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
Diffstat (limited to 'toys.h')
-rw-r--r--toys.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/toys.h b/toys.h
index 5e71e3fe..4083725a 100644
--- a/toys.h
+++ b/toys.h
@@ -119,6 +119,8 @@ extern char toybuf[4096], libbuf[4096];
extern char **environ;
+#define FLAG(x) (toys.optflags&FLAG_##x)
+
#define GLOBALS(...)
#define ARRAY_LEN(array) (sizeof(array)/sizeof(*array))
#define TAGGED_ARRAY(X, ...) {__VA_ARGS__}