]> git.lizzy.rs Git - uwu-lang.git/blobdiff - std/str.c
Add :ref module and refactor type handling
[uwu-lang.git] / std / str.c
index 16f756b4464212a46df698deefd628752f18ddd6..953e8c086ece3c07e74ee9e4ed99fa8cd4185598 100644 (file)
--- a/std/str.c
+++ b/std/str.c
@@ -2,6 +2,7 @@
 #include <stdlib.h>
 #include "../api/vm.h"
 #include "../api/str.h"
+#include "../api/util.h"
 
 UwUVMValue uwu_cat(UwUVMArgs *args)
 {
@@ -28,3 +29,8 @@ UwUVMValue uwu_cat(UwUVMArgs *args)
 
        return uwustr_create(result);
 }
+
+UwUVMValue uwu_is(UwUVMArgs *args)
+{
+       return uwuutil_is_type(":str:is", args, &uwustr_type);
+}