class

Bindgen::GlueReader

Inherits Reference < Object

Reads glue-code from the assets/glue.cr file, for it to be inserted into the generated .cr file.

Constants

END_IF_MARKER = "########## END IF ##########"
IF_CPP_MARKER = "########## IF CPP ##########"

Lines between these markers need the C++ glue, and are left out of a binding without a cpp generator, like one of a C library.

MARKER = "########## SNIP ##########"
PATH = "/tmp/tmp.jlhHHN/src/src/bindgen/../../assets/glue.cr"

Class methods

read(cpp : Bool = true) : String

Returns the glue code from PATH, skipping the header. Leaves out the parts needing the C++ glue unless cpp is set.

Source