Class: Rubycc::Preprocess::Preprocessor::Macro

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubycc/preprocess/preprocessor.rb

Overview

One entry of the macro table. kind is :object or :function; params is the ordered parameter-name list (empty for an object macro, and for a function macro it excludes any trailing "..."); variadic records that a variable part is present so the rest arguments are meaningful; va_name is the identifier that stands for the rest arguments in the replacement list -- "VA_ARGS" for the ISO bare-"..." form and the written name for the GNU "name..." form, nil when not variadic; replacement is the raw replacement-list tokens as written.

Instance Attribute Summary collapse

Instance Attribute Details

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



229
230
231
# File 'lib/rubycc/preprocess/preprocessor.rb', line 229

def kind
  @kind
end

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



229
230
231
# File 'lib/rubycc/preprocess/preprocessor.rb', line 229

def params
  @params
end

#replacementObject

Returns the value of attribute replacement

Returns:

  • (Object)

    the current value of replacement



229
230
231
# File 'lib/rubycc/preprocess/preprocessor.rb', line 229

def replacement
  @replacement
end

#va_nameObject

Returns the value of attribute va_name

Returns:

  • (Object)

    the current value of va_name



229
230
231
# File 'lib/rubycc/preprocess/preprocessor.rb', line 229

def va_name
  @va_name
end

#variadicObject

Returns the value of attribute variadic

Returns:

  • (Object)

    the current value of variadic



229
230
231
# File 'lib/rubycc/preprocess/preprocessor.rb', line 229

def variadic
  @variadic
end