]> git.lizzy.rs Git - uwu-lang.git/blobdiff - std/ref.c
Unify error messages and checking
[uwu-lang.git] / std / ref.c
index 62c0a5289bfd9207753d2302eb10f9e76e5db5fc..f92e4b0c3933f385ca344ff97e71e9a6728a3cba 100644 (file)
--- a/std/ref.c
+++ b/std/ref.c
@@ -4,8 +4,7 @@
 
 UwUVMValue uwu_call(UwUVMArgs *args)
 {
-       if (args->num < 1)
-               error(":ref:call requires at least one argument\n");
+       uwuutil_require_min(":ref:call", args, 1);
 
        UwUVMValue value = uwuvm_get_arg(args, 0);