aboutsummaryrefslogtreecommitdiff
path: root/std/ref.c
diff options
context:
space:
mode:
Diffstat (limited to 'std/ref.c')
-rw-r--r--std/ref.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/std/ref.c b/std/ref.c
index 62c0a52..f92e4b0 100644
--- 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);