int TPpContext::FreeCPP() { if (macros) { mem_FreePool(macros->pool); macros = 0; } return 1; }
int FreeCPP(void) { if (macros) { mem_FreePool(macros->pool); macros = 0; } return 1; }
TPpContext::~TPpContext() { for (TSymbolMap::iterator it = symbols.begin(); it != symbols.end(); ++it) delete it->second->mac.body; mem_FreePool(pool); delete [] preamble; // free up the inputStack while (! inputStack.empty()) popInput(); }