From 78e838e95f14679ef2d8397977de0f6e645ceb12 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 10 Dec 2023 00:49:09 -0500 Subject: Add conv_bool and conv_str_stackvar macros --- src/deliverable.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/deliverable.c b/src/deliverable.c index 3420716..fda4354 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -38,6 +38,9 @@ extern struct OMC_GLOBAL globals; rtevnop = NULL; \ } \ } +#define conv_bool(X, DEST) X->DEST = val.as_bool; + +#define conv_str_stackvar(X, DEST) X.DEST = runtime_expand_var(NULL, val.as_char_p); #define conv_strlist_stackvar(X, DEST, TOK) { \ char *rtevnop = runtime_expand_var(NULL, val.as_char_p); \ if (!X.DEST) \ -- cgit