class Bindgen::GlueReader

Overview

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

Defined in:

bindgen/glue_reader.cr

Constant Summary

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 = "/srv/crystaldoc.info/github-Papierkorb-bindgen-v0.16.2/src/bindgen/../../assets/glue.cr"

Class Method Summary

Class Method Detail

def self.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.


[View source]