Skip to content
Snippets Groups Projects
Commit a6caf550 authored by Houtan Bastani's avatar Houtan Bastani Committed by Sébastien Villemot
Browse files

bug fix: nonstationary vars and tex names

(cherry picked from commit aff56297)
parent 0ae688c8
Branches
Tags 5.4
No related merge requests found
...@@ -304,6 +304,9 @@ ParsingDriver::add_expression_variable(string *name) ...@@ -304,6 +304,9 @@ ParsingDriver::add_expression_variable(string *name)
void void
ParsingDriver::declare_nonstationary_var(string *name, string *tex_name) ParsingDriver::declare_nonstationary_var(string *name, string *tex_name)
{ {
if (tex_name != NULL)
declare_endogenous(new string(*name), new string(*tex_name));
else
declare_endogenous(new string(*name), tex_name); declare_endogenous(new string(*name), tex_name);
declared_nonstationary_vars.push_back(mod_file->symbol_table.getID(*name)); declared_nonstationary_vars.push_back(mod_file->symbol_table.getID(*name));
mod_file->nonstationary_variables = true; mod_file->nonstationary_variables = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment