]> git.lizzy.rs Git - uwu-lang.git/blobdiff - std/nil.c
Unify error messages and checking
[uwu-lang.git] / std / nil.c
index 93172eb7c8de66d92a2e0ee120d988d5f5fd151e..52a2872337dea0da7494b72dbba8bc70d3ed45bc 100644 (file)
--- a/std/nil.c
+++ b/std/nil.c
@@ -4,9 +4,7 @@
 
 UwUVMValue uwu_nil(UwUVMArgs *args)
 {
-       if (args->num != 0)
-               error(":nil:nil does not accept any arguments\n");
-
+       uwuutil_require_exact(":nil:nil", args, 0);
        return uwunil_create();
 }