Skip to content
Snippets Groups Projects
Commit 0880e075 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

fix bug with @#ifdef in macroprocessor

(cherry picked from commit ebc7a783)
parent 140fb2a6
Branches
Tags
No related merge requests found
......@@ -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));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment