Commit ebc7a783 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

fix bug with @#ifdef in macroprocessor

parent f0e43f8a
......@@ -170,15 +170,11 @@ MacroDriver::begin_ifdef(const string &name)
try
{
get_variable(name);
const MacroValue *one = new IntMV(*this, 1);
begin_if(one);
delete one;
begin_if(new IntMV(*this, 1));
}
catch (UnknownVariable &)
{
const MacroValue *zero = new IntMV(*this, 0);
begin_if(zero);
delete zero;
begin_if(new IntMV(*this, 0));
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment