aboutsummaryrefslogtreecommitdiff
path: root/std/nil.c
blob: 93172eb7c8de66d92a2e0ee120d988d5f5fd151e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "common/err.h"
#include "api/nil.h"
#include "api/util.h"

UwUVMValue uwu_nil(UwUVMArgs *args)
{
	if (args->num != 0)
		error(":nil:nil does not accept any arguments\n");

	return uwunil_create();
}

UwUVMValue uwu_is(UwUVMArgs *args)
{
	return uwuutil_is_type(":nil:is", args, &uwunil_type);
}