]> git.lizzy.rs Git - uwu-lang.git/blob - std/nil.c
Allow passing arguments to program, refactor directory structure
[uwu-lang.git] / std / nil.c
1 #include "common/err.h"
2 #include "api/nil.h"
3 #include "api/util.h"
4
5 UwUVMValue uwu_nil(UwUVMArgs *args)
6 {
7         if (args->num != 0)
8                 error(":nil:nil does not accept any arguments\n");
9
10         return uwunil_create();
11 }
12
13 UwUVMValue uwu_is(UwUVMArgs *args)
14 {
15         return uwuutil_is_type(":nil:is", args, &uwunil_type);
16 }