Class: CShadow::PointerAttribute

Inherits:
CNativeAttribute show all
Defined in:
lib/cgen/attribute.rb

Direct Known Subclasses

CharPointerAttribute, DoublePointerAttribute

Instance Attribute Summary

Attributes inherited from CNativeAttribute

#ctype

Attributes inherited from Attribute

#cdecl, #check, #cvar, #dump, #free, #init, #load, #mark, #owner_class, #persists, #reader, #var, #writer

Instance Method Summary collapse

Methods inherited from CNativeAttribute

match

Methods inherited from Attribute

inherited, #inspect, match

Constructor Details

#initialize(*args) ⇒ PointerAttribute

Returns a new instance of PointerAttribute.



358
359
360
361
# File 'lib/cgen/attribute.rb', line 358

def initialize(*args)
  super
  @free = "free(shadow->#{@cvar})"
end