Class: AdLint::Cc1::InspectFunction

Inherits:
BuiltinFunction show all
Defined in:
lib/adlint/cc1/builtin.rb

Instance Attribute Summary

Attributes included from Nameable

#name

Attributes inherited from TypedObject

#type

Attributes inherited from Object

#declarations_and_definitions

Attributes included from Bindable

#binding

Instance Method Summary collapse

Methods inherited from BuiltinFunction

#builtin?, #explicit?

Methods inherited from NamedFunction

#designated_by_lvalue?, #signature

Methods included from Nameable

#named?

Methods inherited from Function

#builtin?, #explicit?, #function?, #implicit?, #name, #named?, #signature, #temporary?, #variable?

Methods inherited from TypedObject

#to_pointer, #to_pointer_value, #to_value, #to_variable

Methods inherited from Object

#declared_as_auto?, #declared_as_extern?, #declared_as_register?, #declared_as_static?, #designated_by_lvalue?, #function?, #named?, #storage_class_specifiers, #temporary?, #variable?

Methods included from Bindable

#be_alias_to, #bind_to

Constructor Details

#initialize(type_tbl) ⇒ InspectFunction

Returns a new instance of InspectFunction.



57
58
59
# File 'lib/adlint/cc1/builtin.rb', line 57

def initialize(type_tbl)
  super(type_tbl, "__adlint__inspect")
end

Instance Method Details

#call(args) ⇒ Object



61
62
63
64
65
66
# File 'lib/adlint/cc1/builtin.rb', line 61

def call(*, args)
  puts "__adlint__inspect"
  args.each { |arg, expr| pp arg }
  puts "EOM"
  super
end