class
Bindgen::Parser::Macro
- Bindgen::Parser::Macro
- Reference
- Object
Overview
Stores information on a C++ macro (a #define).
Included Modules
- JSON::Serializable
Defined in:
bindgen/parser/macro.crConstructors
Instance Method Summary
-
#arguments : Array(String)
Argument names
-
#evaluated : DefaultValueTypes | Nil
If the macro was successfully evaluated, the parsed value.
-
#function? : Bool
Is this macro function-like? (
#define FOO(x, y) x + y) -
#name : String
Name of the macro
-
#type : Type | Nil
The type of the evaluated macro body
-
#value : String
The body of the macro, as written in the C/C++ source
-
#var_arg? : Bool
Does this macro take a variable amount of arguments?
Constructor Detail
Instance Method Detail
def evaluated : DefaultValueTypes | Nil
#
If the macro was successfully evaluated, the parsed value.