module Glue
Defined in:
ext/glue.crClass Method Summary
-
.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 aQuickJS::CrystalProcedure
for C++ interop. -
.wrap_procedure(nothing : Nil)
Returns a null
QuickJS::CrystalProcedure
for cases where no procedure is provided.
Macro Summary
-
wrap_container(wrapper, list)
Wraps a list into a container wrapper if it's not already one.
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.
def self.wrap_procedure(nothing : Nil)
#
Returns a null QuickJS::CrystalProcedure
for cases where no procedure is provided.
Macro Detail
macro wrap_container(wrapper, list)
#
Wraps a list into a container wrapper if it's not already one.