cobek/context.h
2022-03-24 16:08:10 +03:00

16 lines
360 B
C

#pragma once
#include "commands.h"
struct ContextStruct;
typedef ContextStruct Context;
Autoarr_declare(Context);
struct ContextStruct{
Context* parent;
Autoarr(Context) children;
Autoarr(Command) commandChain;
Autoarr(Constant) constantStack;
bool isPartial; // if true, not-defined members won't throw NotDefinedError before linkage
}