added handling of constants equaling constants. e.g. FMT_DEFAULT = FMT_MATLAB

This commit is contained in:
hbristow
2013-06-26 17:39:08 -07:00
parent c5720213e4
commit 6b88a21be8
5 changed files with 17 additions and 15 deletions

View File

@@ -23,7 +23,11 @@
classdef cv
properties (Constant = true)
{% for key, val in constants.items() %}
{% if val|convertibleToInt %}
{{key}} = {{val}};
{% else %}
{{key}} = {{constants[val]}};
{% endif %}
{% endfor %}
end
end