class

Bindgen::Processor::CrystalBinding

Inherits Bindgen::Processor::Base < Bindgen::Graph::Visitor < Reference < Object

Processor to write lib bindings to the functions created by the CppWrapper processor.

Constants

Log = ::Log.for(self)

Processor to write lib bindings to the functions created by the CppWrapper processor.

PLATFORM = Graph::Platform::CrystalBinding
VOID_RESULT = Call::Result.new(type: Parser::Type::VOID, type_name: "Void", reference: false, pointer: 0, nilable: false)

A Call::Result pointing to a Void result.

Constructors

new(_config, db)
Source

Instance methods

process(graph : Graph::Container, _doc : Parser::Document)

Runs the processor. You may change graph as you see fit.

Source
visit_class(klass)

Visits a Graph::Class. The default implementation calls #visit_children to visit all child nodes.

Source
visit_library(library)

Visits a Graph::Library. The default implementation calls #visit_children to visit all child nodes.

Source
visit_method(method)

Visits a Graph::Method.

Source
visit_platform_specific(specific)

Visits a Graph::PlatformSpecific.

Source