lisp-take-1/value/quote/foreach_accessible_subvalue.c

26 lines
439 B
C

#include <assert.h>
#include <debug.h>
#include "../struct.h"
#include "struct.h"
#include "foreach_accessible_subvalue.h"
void quote_value_foreach_accessible_subvalue(
const struct value* super,
void (*callback)(
struct value* subvalue))
{
ENTER;
assert(super->kind == vk_quote);
const struct quote_value* this = &super->subclass.quote;
callback(this->subexpression);
EXIT;
}