module Glue

Defined in:

ext/glue.cr

Class Method Summary

Macro Summary

Class Method Detail

def self.wrap_procedure(procedure : Proc(Medusa::Binding::QuickJS::JSContext, Medusa::Binding::QuickJS::JSValue, Int32, Pointer(Medusa::Binding::QuickJS::JSValue), Medusa::Binding::QuickJS::JSValue)) #

Wraps a Crystal Proc into a QuickJS::CrystalProcedure for C++ interop. The Proc must match the QuickJS function signature.


[View source]
def self.wrap_procedure(nothing : Nil) #

Returns a null QuickJS::CrystalProcedure for cases where no procedure is provided.


[View source]

Macro Detail

macro wrap_container(wrapper, list) #

Wraps a list into a container wrapper if it's not already one.


[View source]