aboutsummaryrefslogtreecommitdiff
path: root/std/nil.c
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-12-30 16:53:37 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-12-30 16:53:37 +0100
commit4c52777ca9e52edd0bff76168d886de9757ea457 (patch)
tree385c548fbae43f4b4764a1c32d5babe60c84aa4d /std/nil.c
parent058d954e80f83c26deb209008f11d87a5b59418e (diff)
downloaduwu-lang-4c52777ca9e52edd0bff76168d886de9757ea457.tar.xz
Add :ref module and refactor type handling
Diffstat (limited to 'std/nil.c')
-rw-r--r--std/nil.c6
1 files changed, 6 insertions, 0 deletions
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);
+}