Class: RgGen::CHeader::Component

Inherits:
Core::OutputBase::Component
  • Object
show all
Defined in:
lib/rggen/c_header/component.rb

Instance Method Summary collapse

Instance Method Details

#macro_definitionsObject



6
7
8
9
10
11
# File 'lib/rggen/c_header/component.rb', line 6

def macro_definitions
  [
    @children.map(&:macro_definitions),
    @features.each_value.map(&:macro_definitions)
  ].flatten
end

#struct_definitionsObject



13
14
15
16
17
18
# File 'lib/rggen/c_header/component.rb', line 13

def struct_definitions
  [
    @children.map(&:struct_definitions),
    @features.each_value.map(&:struct_definitions)
  ].flatten
end