Class: CShadow::FreeFunction

Inherits:
CGenerator::Function show all
Defined in:
lib/cgen/cshadow.rb

Instance Attribute Summary

Attributes inherited from CGenerator::Accumulator

#name, #parent

Instance Method Summary collapse

Methods inherited from CGenerator::Function

#arguments, #empty?, #prototype, #return_type, #scope

Methods inherited from CGenerator::Template

accumulator

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