From a8020a1eebb56ae4f3303030b6baab608be695b3 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 28 Mar 2022 21:45:22 -0700 Subject: Test for features not awks. Let's start the practice of setting up some feature macros in base.h. Then test for features elsewhere. --- cppawk-include/base.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cppawk-include/base.h') diff --git a/cppawk-include/base.h b/cppawk-include/base.h index 1f060cb..aa8cada 100644 --- a/cppawk-include/base.h +++ b/cppawk-include/base.h @@ -40,4 +40,8 @@ #define __present(arg) ((arg) != "" || (arg) != 0) +#if __gawk__ +#define __have_switch 1 +#endif + #endif -- cgit v1.2.3