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
Mark Song
dynare
Commits
3a622738
Commit
3a622738
authored
Jan 25, 2018
by
Houtan Bastani
Browse files
Fix commit reverted in
4d89452e
.
parent
ef797eec
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/macro/MacroDriver.cc
View file @
3a622738
/*
* Copyright (C) 2008-201
7
Dynare Team
* Copyright (C) 2008-201
8
Dynare Team
*
* This file is part of Dynare.
*
...
...
@@ -60,7 +60,11 @@ MacroDriver::parse(const string &f, const string &fb, const string &modfiletxt,
}
catch
(
boost
::
bad_lexical_cast
&
)
{
file_with_endl
<<
"@#define "
<<
it
->
first
<<
" =
\"
"
<<
it
->
second
<<
"
\"
"
<<
endl
;
if
(
!
it
->
second
.
empty
()
&&
it
->
second
.
at
(
0
)
==
'['
&&
it
->
second
.
at
(
it
->
second
.
length
()
-
1
)
==
']'
)
// If the input is an array. Issue #1578
file_with_endl
<<
"@#define "
<<
it
->
first
<<
" = "
<<
it
->
second
<<
endl
;
else
file_with_endl
<<
"@#define "
<<
it
->
first
<<
" =
\"
"
<<
it
->
second
<<
"
\"
"
<<
endl
;
}
file_with_endl
<<
modfiletxt
<<
endl
;
...
...
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