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/str.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'std/str.c') diff --git a/std/str.c b/std/str.c index 16f756b..953e8c0 100644 --- a/std/str.c +++ b/std/str.c @@ -2,6 +2,7 @@ #include #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); +} -- cgit v1.2.3