module MrbMacro

Overview

Helper methods which should not be used for trivial cases in the final version

Defined in:

MrbMacro.cr

Macro Summary

Macro Detail

macro add_default_constructor(mrb_state, crystal_class, verbose) #

[View source]
macro add_enum_constructor(mrb_state, crystal_class, verbose) #

[View source]
macro allocate_constructed_object(crystal_class, obj, new_obj) #

[View source]
macro call_and_return(mrb, proc, regular_args, converted_args, operator = "") #

[View source]
macro call_and_return_instance_method(mrb, proc, converted_obj, converted_args, operator = "") #

[View source]
macro call_and_return_keyword_instance_method(mrb, proc, converted_obj, converted_regular_args, keyword_args, kw_args, operator = "", empty_regular = false, context = nil, type_vars = nil, type_var_names = nil) #

[View source]
macro call_and_return_keyword_method(mrb, proc, converted_regular_args, keyword_args, kw_args, operator = "", empty_regular = false, context = nil, type_vars = nil, type_var_names = nil) #

[View source]
macro cast_to_union_value(mrb, value, types, context = nil) #

[View source]
macro check_and_cast_resolved_union_type(mrb, value, type, raw_type, context = nil) #

[View source]
macro check_and_cast_union_type(mrb, value, type, raw_type, context = nil) #

[View source]
macro convert_arg(mrb, arg, arg_type, context = nil) #

Converts Ruby values to Crystal values


[View source]
macro convert_args(mrb, args, regular_args, context) #

[View source]
macro convert_from_ruby_object(mrb, obj, crystal_type) #

[View source]
macro convert_from_ruby_struct(mrb, obj, crystal_type) #

[View source]
macro convert_keyword_arg(mrb, arg, arg_type, context = nil, type_vars = nil, type_var_names = nil, debug_information = nil) #

[View source]
macro convert_resolved_arg(mrb, arg, arg_type, raw_arg_type, context = nil) #

[View source]
macro convert_resolved_keyword_arg(mrb, arg, arg_type, raw_arg_type, context = nil, debug_information = nil) #

[View source]
macro format_char(arg, optional_values = false, context = nil) #

[View source]
macro format_string(args, context = nil) #

[View source]
macro generate_arg_tuple(mrb, args, context = nil) #

[View source]
macro generate_keyword_argument_struct(keyword_args) #

[View source]
macro generate_keyword_names(keyword_args) #

[View source]
macro get_converted_args(mrb, regular_args, context) #

[View source]
macro get_raw_args(mrb, regular_args, context = nil) #

[View source]
macro pointer_type(type, context = nil) #

[View source]
macro resolve_format_char(arg, raw_arg, context = nil) #

[View source]
macro resolve_pointer_type(type, raw_type, context = nil) #

[View source]
macro resolve_type_in_ruby(type, raw_type, context = nil) #

[View source]
macro type_in_ruby(type, context = nil) #

[View source]
macro wrap_all_class_methods(mrb_state, crystal_class, exclusions, verbose, context = nil) #

[View source]
macro wrap_all_constants(mrb_state, crystal_class, exclusions, verbose, context = nil) #

[View source]
macro wrap_all_instance_methods(mrb_state, crystal_class, exclusions, verbose, context = nil, use_enum_constructor = false) #

[View source]
macro wrap_class_method_with_args(mrb_state, crystal_class, name, proc, regular_args = nil, operator = "", context = nil) #

[View source]
macro wrap_class_method_with_keyword_args(mrb_state, crystal_class, name, proc, keyword_args, regular_args = nil, operator = "", context = nil) #

[View source]
macro wrap_constant_or_class(mrb_state, under_class_or_module, ruby_name, value, verbose = false) #

[View source]
macro wrap_constructor_function_with_args(mrb_state, crystal_class, proc, regular_args = nil, operator = "", context = nil) #

[View source]
macro wrap_constructor_function_with_keyword_args(mrb_state, crystal_class, proc, keyword_args, regular_args = nil, operator = "", context = nil) #

[View source]
macro wrap_instance_function_with_args(mrb_state, crystal_class, name, proc, regular_args = nil, operator = "", context = nil) #

[View source]
macro wrap_instance_function_with_keyword_args(mrb_state, crystal_class, name, proc, keyword_args, regular_args = nil, operator = "", context = nil) #

[View source]
macro wrap_method_index(mrb_state, crystal_class, method_index, ruby_name, is_constructor = false, is_class_method = false, operator = "", cut_name = nil, without_keywords = false, added_keyword_args = nil, context = nil) #

[View source]
macro wrap_module_function_with_args(mrb_state, under_module, name, proc, regular_args = nil, context = nil) #

[View source]
macro wrap_module_function_with_keyword_args(mrb_state, under_module, name, proc, keyword_args, regular_args = nil, operator = "", context = nil) #

[View source]