Commit c0e1fbae authored by Bednárek David RNDr. Ph.D.'s avatar Bednárek David RNDr. Ph.D.
Browse files

corrected dump (const on global vars)

parent 68175ee5
......@@ -271,7 +271,7 @@ namespace cecko {
fncs_.for_each(decllambda);
os << "// --- GLOBAL VARIABLES ---" << std::endl;
auto varlambda = [&os](auto&& a) {
os << a->get_type()->declaration(false, a->get_dump_name()) << ";" << CIEndl;
os << a->get_type()->declaration(a->is_const(), a->get_dump_name()) << ";" << CIEndl;
};
vars_.for_each(varlambda);
os << "// --- FUNCTION DEFINITIONS ---" << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment