aboutsummaryrefslogtreecommitdiff
path: root/std/nil.c
blob: 599e3d42d4e91dc64f5c5cc7eb8eee9c5180f4e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "../src/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);
}