24 lines
395 B
C
24 lines
395 B
C
|
|
#include <debug.h>
|
|
|
|
#include "../new.h"
|
|
#include "../kind.h"
|
|
|
|
#include "struct.h"
|
|
#include "inheritance.h"
|
|
#include "new.h"
|
|
|
|
struct value* new_null_value(
|
|
struct gc* gc)
|
|
{
|
|
ENTER;
|
|
|
|
struct value* super = new_value(
|
|
/* garbage collector/allocator: */ gc,
|
|
/* kind: */ vk_null,
|
|
/* inheritance: */ &null_value_inheritance);
|
|
|
|
EXIT;
|
|
return super;
|
|
}
|
|
|