From 4c52777ca9e52edd0bff76168d886de9757ea457 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Thu, 30 Dec 2021 16:53:37 +0100 Subject: Add :ref module and refactor type handling --- std/nil.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'std/nil.c') diff --git a/std/nil.c b/std/nil.c index 33230fb..599e3d4 100644 --- a/std/nil.c +++ b/std/nil.c @@ -1,5 +1,6 @@ #include "../src/err.h" #include "../api/nil.h" +#include "../api/util.h" UwUVMValue uwu_nil(UwUVMArgs *args) { @@ -8,3 +9,8 @@ UwUVMValue uwu_nil(UwUVMArgs *args) return uwunil_create(); } + +UwUVMValue uwu_is(UwUVMArgs *args) +{ + return uwuutil_is_type(":nil:is", args, &uwunil_type); +} -- cgit v1.2.3