Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
preprocessor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dynare
preprocessor
Commits
df8d8ef1
Unverified
Commit
df8d8ef1
authored
Nov 02, 2020
by
Sébastien Villemot
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix logic for @#ifndef
Ref.
dynare#1747
parent
abf5a655
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/macro/Directives.cc
src/macro/Directives.cc
+2
-2
No files found.
src/macro/Directives.cc
View file @
df8d8ef1
...
...
@@ -306,8 +306,8 @@ Ifndef::interpret(ostream &output, vector<filesystem::path> &paths)
{
for
(
const
auto
&
[
expr
,
body
]
:
expr_and_body
)
if
(
VariablePtr
vp
=
dynamic_pointer_cast
<
Variable
>
(
expr
);
!
(
dynamic_pointer_cast
<
BaseType
>
(
expr
)
||
(
vp
&&
env
.
isVariableDefined
(
vp
->
getName
()
))))
dynamic_pointer_cast
<
BaseType
>
(
expr
)
||
(
vp
&&
!
env
.
isVariableDefined
(
vp
->
getName
(
))))
{
interpretBody
(
body
,
output
,
paths
);
break
;
...
...
Sébastien Villemot
@sebastien
mentioned in commit
8207886e
·
Nov 02, 2020
mentioned in commit
8207886e
mentioned in commit 8207886e85db7edd932d453e16d943be774ee991
Toggle commit list
Write
Preview
Markdown
is supported
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