summaryrefslogtreecommitdiff
path: root/val.h
diff options
context:
space:
mode:
Diffstat (limited to 'val.h')
-rw-r--r--val.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/val.h b/val.h
index e4227a4..c71e419 100644
--- a/val.h
+++ b/val.h
@@ -72,6 +72,7 @@ ObjFunc *objfunc_new(State *S);
#define IS_OBJ(x) (x.ty == TY_OBJ)
#define IS_STRING(x) (is_obj_ty((x), OTY_STRING))
+#define IS_FUNC(x) (is_obj_ty((x), OTY_FUNC))
#define AS_NUM(x) (x.as.d)
#define AS_BOOL(x) (x.as.b)