class Bindgen::Parser::Macro

Overview

Stores information on a C++ macro (a #define).

Included Modules

Defined in:

bindgen/parser/macro.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def arguments : Array(String) #

Argument names


[View source]
def evaluated : DefaultValueTypes | Nil #

If the macro was successfully evaluated, the parsed value.


[View source]
def function? : Bool #

Is this macro function-like? (#define FOO(x, y) x + y)


[View source]
def name : String #

Name of the macro


[View source]
def type : Type | Nil #

The type of the evaluated macro body


[View source]
def value : String #

The body of the macro, as written in the C/C++ source


[View source]
def var_arg? : Bool #

Does this macro take a variable amount of arguments?


[View source]