1 /** \file gameengine/Expressions/Expression.cpp
4 // Expression.cpp: implementation of the CExpression class.
6 * Copyright (c) 1996-2000 Erwin Coumans <coockie@acm.org>
8 * Permission to use, copy, modify, distribute and sell this software
9 * and its documentation for any purpose is hereby granted without fee,
10 * provided that the above copyright notice appear in all copies and
11 * that both that copyright notice and this permission notice appear
12 * in supporting documentation. Erwin Coumans makes no
13 * representations about the suitability of this software for any
14 * purpose. It is provided "as is" without express or implied warranty.
18 #include "Expression.h"
19 #include "ErrorValue.h"
21 //////////////////////////////////////////////////////////////////////
22 // Construction/Destruction
23 //////////////////////////////////////////////////////////////////////
27 CExpression::CExpression()// : m_cached_calculate(NULL)
35 CExpression::~CExpression()
37 assert (m_refcount == 0);
42 // destuctor for CBrokenLinkInfo
43 CBrokenLinkInfo::~CBrokenLinkInfo()
45 if (m_pExpr && !m_bRestored)
50 void CBrokenLinkInfo::RestoreLink()
64 (*m_pmemExpr)->Release();
66 *m_pmemExpr = m_pExpr;
72 void CBrokenLinkInfo::BreakLink()