lisp-take-1/value/environment/shallow_free.c

26 lines
384 B
C

#include <assert.h>
#include <debug.h>
#include <avl/avl.h>
#include "../struct.h"
#include "struct.h"
#include "shallow_free.h"
void shallow_free_environment_value(
struct value* super)
{
ENTER;
assert(super->kind == vk_envrionment);
struct environment_value* this = &super->subclass.environment;
avl_free_tree(this->tree);
EXIT;
}