Class: Rbind::GeneratorC::ConstsHelper
- Inherits:
-
HelperBase
- Object
- HelperBase
- Rbind::GeneratorC::ConstsHelper
- Defined in:
- lib/rbind/generator_c.rb
Instance Attribute Summary
Attributes inherited from HelperBase
#extern_types, #includes, #name
Instance Method Summary collapse
Methods inherited from HelperBase
#binding, #initialize, #wrap_includes
Constructor Details
This class inherits a constructor from Rbind::GeneratorC::HelperBase
Instance Method Details
#wrap_consts ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/rbind/generator_c.rb', line 92 def wrap_consts str = "" @root.each_container do |type| str2 = "" type.each_const(false) do |c| str2 += "#{c.signature};\n" end if !str2.empty? str += "\n\n//constants for #{type.full_name}\n" str += str2 end str end str end |