Example #1
0
File: Pp.cpp Project: 3dcl/glslang
int TPpContext::FreeCPP()
{
    if (macros) {
        mem_FreePool(macros->pool);
        macros = 0;
    }

    return 1;
}
Example #2
0
int FreeCPP(void)
{
	if (macros) {
		mem_FreePool(macros->pool);
		macros = 0;
	}

	return 1;
}
Example #3
0
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();
}