Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
ebc7a783
Commit
ebc7a783
authored
Jun 26, 2012
by
Houtan Bastani
Browse files
fix bug with @#ifdef in macroprocessor
parent
f0e43f8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/macro/MacroDriver.cc
View file @
ebc7a783
...
...
@@ -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
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment