summaryrefslogtreecommitdiff
path: root/xs.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-07-01 08:59:32 +0200
committerdefault <nobody@localhost>2024-07-01 08:59:32 +0200
commitaa3e351951751adbfaf87ed1bdb63767221dd214 (patch)
treeb6fcdd7702d6158c1eede277e1b208e82d3cf6f4 /xs.h
parent6f772e477059973f6c5408e380db6409374316bf (diff)
Minor tweak.
Diffstat (limited to 'xs.h')
-rw-r--r--xs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xs.h b/xs.h
index f479108..f250764 100644
--- a/xs.h
+++ b/xs.h
@@ -149,6 +149,8 @@ unsigned int xs_hash_func(const char *data, int size);
#define xs_return(v) xs_val *__r = v; v = NULL; return __r
+#define xs_is_true(v) (xs_type((v)) == XSTYPE_TRUE)
+#define xs_is_false(v) (xs_type((v)) == XSTYPE_FALSE)
#ifdef XS_IMPLEMENTATION