diff options
author | Marius Kintel <marius@kintel.net> | 2013-04-27 05:01:45 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-04-27 05:01:45 (GMT) |
commit | 17df3f6275fce73119c311cc73a6ad057d3b47ee (patch) | |
tree | 6c907e241b53c40c10743bbf08754b86a13f6457 /src/evalcontext.h | |
parent | 6b3daa748543f13cc7cf8eff1c9efeebd6dc3a14 (diff) | |
parent | 7858b0443e7fb09134f2b69a535417688353c0bb (diff) |
Merge pull request #328 from openscad/issue116
Issue116
Diffstat (limited to 'src/evalcontext.h')
-rw-r--r-- | src/evalcontext.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/evalcontext.h b/src/evalcontext.h new file mode 100644 index 0000000..3d7d222 --- /dev/null +++ b/src/evalcontext.h @@ -0,0 +1,24 @@ +#ifndef EVALCONTEXT_H_ +#define EVALCONTEXT_H_ + +#include "context.h" + +/*! + This hold the evaluation context (the parameters actually sent + when calling a module or function, including the children). +*/ +class EvalContext : public Context +{ +public: + EvalContext(const Context *parent = NULL) : Context(parent) {} + virtual ~EvalContext() {} + + std::vector<std::pair<std::string, Value> > eval_arguments; + std::vector<class ModuleInstantiation *> children; + +#ifdef DEBUG + virtual void dump(const class AbstractModule *mod, const ModuleInstantiation *inst); +#endif +}; + +#endif |