module MrbRefTable
Overview
This is a very simple approach to generate artificial references to the wrapped objects. Therefore, the GC won't delete the wrapped objects until necessary. Note that this is currently one-directional, so mruby might still delete Crystal objects generated from Crystal itself. Furthermore, this is only possible as a module due to C closure limitations.
TODO Add compilation option for ignoring entry checks
Defined in:
MrbRefTable.crClass Method Summary
- .add(identification, value)
- .delete(identification)
- .get(identification)
-
.get_object_id(value)
TODO If a struct wrapper is given here, call the struct methods instead of the wrapper methods
- .inspect
- .is_registered?(identification)
- .option_active?(symbol)
- .reset
- .set_option(symbol)
- .unset_option(symbol)
Class Method Detail
def self.get_object_id(value)
#
TODO If a struct wrapper is given here, call the struct methods instead of the wrapper methods