Class: CShadow::FreeFunction
- Inherits:
-
CGenerator::Function
- Object
- CGenerator::Accumulator
- CGenerator::Template
- CGenerator::CFragment
- CGenerator::Function
- CShadow::FreeFunction
- Defined in:
- lib/cgen/cshadow.rb
Instance Attribute Summary
Attributes inherited from CGenerator::Accumulator
Instance Method Summary collapse
-
#initialize(*args) ⇒ FreeFunction
constructor
A new instance of FreeFunction.
Methods inherited from CGenerator::Function
#arguments, #empty?, #prototype, #return_type, #scope
Methods inherited from CGenerator::Template
Methods inherited from CGenerator::Accumulator
#accept?, #add, #add_one, #add_one_really, #inspect, #inspect_one, #output, #output_one, #separator, #to_s
Constructor Details
#initialize(*args) ⇒ FreeFunction
Returns a new instance of FreeFunction.
1043 1044 1045 1046 |
# File 'lib/cgen/cshadow.rb', line 1043 def initialize(*args) super body free!, "free(shadow)" # free the struct last! end |