]> git.lizzy.rs Git - uwu-lang.git/blobdiff - std/nil.c
Add :ref module and refactor type handling
[uwu-lang.git] / std / nil.c
index 33230fb498da792e8606c994087501ba6e2c8b56..599e3d42d4e91dc64f5c5cc7eb8eee9c5180f4e8 100644 (file)
--- 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);
+}