added handling of constants equaling constants for C++ map
This commit is contained in:
@@ -22,6 +22,10 @@ typedef std::unordered_map Map;
|
||||
*/
|
||||
Map<std::string, int> constants = {
|
||||
{% for key, val in constants.items() %}
|
||||
{% if val|convertibleToInt %}
|
||||
{ "{{key}}", {{val}} },
|
||||
{% else %}
|
||||
{ "{{key}}", {{constants[val]}} },
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
};
|
||||
|
Reference in New Issue
Block a user