Skip to content

Commit

Permalink
First step in constant simplifications
Browse files Browse the repository at this point in the history
    * ridlbe/c++11/writers/stubheader.rb:
  • Loading branch information
jwillemsen committed Apr 11, 2024
1 parent c87e860 commit 3aa39a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ridlbe/c++11/writers/stubheader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def visit_const(node)
if node.enclosure.is_a?(IDL::AST::Module)
printi("const #{node.idltype.cxx_type(node.enclosure)} ")
else
printi("static const #{node.idltype.cxx_type(node.enclosure)} ")
printi("static inline const #{node.idltype.cxx_type(node.enclosure)} {#{expression_to_s(node.expression, node.enclosure)}}")
end
else
if node.enclosure.is_a?(IDL::AST::Module)
Expand Down

0 comments on commit 3aa39a8

Please sign in to comment.