Skip to content

Commit

Permalink
Compatibility with upcoming Crystal
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed May 14, 2017
1 parent 55d5332 commit da4d944
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generate.cr
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,7 @@ class CEnum < CNamespace
o<< "enum #{name(context)}"
end
members.each do |member|
next if member.name(Context::Crystal) == "None" && member.value == "0"
member.render_docs(o, qualname + "::" + member.name(Context::Crystal))
member.render(context, o)
end
Expand Down Expand Up @@ -1807,7 +1808,7 @@ class Output
tab = {% begin %}
{{@type}}::TAB
{% end %}
comment = {% if flag? :debug %}
comment = {% if flag? :verbose %}
lineno ? "L#{lineno}" : nil
{% else %}
nil
Expand Down

0 comments on commit da4d944

Please sign in to comment.