Class: Rubycc::Front::AST::AlignofType

Inherits:
Data
  • Object
show all
Defined in:
lib/rubycc/front/ast.rb

Overview

_Alignof ( type-name ) (ISO C 6.5.3.4): the alignment requirement, in bytes, of a written type. type is the resolved Rubycc::Type. Only the parenthesized type-name form exists; unlike sizeof there is no operand form. The result folds to a size_t (unsigned long) constant, exactly like SizeofType, and is rejected for a void, function or incomplete type.

Instance Attribute Summary collapse

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



154
155
156
# File 'lib/rubycc/front/ast.rb', line 154

def token
  @token
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



154
155
156
# File 'lib/rubycc/front/ast.rb', line 154

def type
  @type
end