Class: Rubycc::Preprocess::Preprocessor::Macro
- Inherits:
-
Struct
- Object
- Struct
- Rubycc::Preprocess::Preprocessor::Macro
- 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
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#params ⇒ Object
Returns the value of attribute params.
-
#replacement ⇒ Object
Returns the value of attribute replacement.
-
#va_name ⇒ Object
Returns the value of attribute va_name.
-
#variadic ⇒ Object
Returns the value of attribute variadic.
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind
229 230 231 |
# File 'lib/rubycc/preprocess/preprocessor.rb', line 229 def kind @kind end |
#params ⇒ Object
Returns the value of attribute params
229 230 231 |
# File 'lib/rubycc/preprocess/preprocessor.rb', line 229 def params @params end |
#replacement ⇒ Object
Returns the value of attribute replacement
229 230 231 |
# File 'lib/rubycc/preprocess/preprocessor.rb', line 229 def replacement @replacement end |
#va_name ⇒ Object
Returns the value of attribute va_name
229 230 231 |
# File 'lib/rubycc/preprocess/preprocessor.rb', line 229 def va_name @va_name end |
#variadic ⇒ Object
Returns the value of attribute variadic
229 230 231 |
# File 'lib/rubycc/preprocess/preprocessor.rb', line 229 def variadic @variadic end |