Class: AdLint::Cc1::InspectFunction
- Inherits:
-
BuiltinFunction
- Object
- Object
- TypedObject
- Function
- NamedFunction
- BuiltinFunction
- AdLint::Cc1::InspectFunction
- Defined in:
- lib/adlint/cc1/builtin.rb
Instance Attribute Summary
Attributes included from Nameable
Attributes inherited from TypedObject
Attributes inherited from Object
Attributes included from Bindable
Instance Method Summary collapse
- #call(args) ⇒ Object
-
#initialize(type_tbl) ⇒ InspectFunction
constructor
A new instance of InspectFunction.
Methods inherited from BuiltinFunction
Methods inherited from NamedFunction
#designated_by_lvalue?, #signature
Methods included from Nameable
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
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 |