diff options
author | Teddy <[email protected]> | 2013-08-19 00:20:11 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2013-08-19 00:20:11 +0800 |
commit | 024c83a13a256f7f171732189a154c74c0ce24ad (patch) | |
tree | 4d20003490b6430e3abcf669cbe473be3b72a35f | |
parent | 204f338bbd0e287184e4cfd6ea33459dbaf4350f (diff) |
-rw-r--r-- | model.cpp | 5 | ||||
-rw-r--r-- | model.h | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -27,6 +27,11 @@ bool FrameObj::is_parse_bracket() { return ftype & CLS_PAR_BRA; } +EvalObj::EvalObj(const EvalObj &src) : +FrameObj(CLS_EVAL_OBJ), otype(src.otype) { + gc_rec = gc.join(this); +} + EvalObj::EvalObj(int _otype) : FrameObj(CLS_EVAL_OBJ), otype(_otype) { /** To notify GC when an EvalObj is constructed */ @@ -72,6 +72,8 @@ class EvalObj : public FrameObj {/*{{{*/ * CLS_SIM_OBJ for a simple object), which defaults to CLS_SIM_OBJ, etc. */ EvalObj(int otype = CLS_SIM_OBJ); + /** The copy constructor */ + EvalObj(const EvalObj &src); /** * The destructor */ |