module Anyolite::Macro

Overview

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

Defined in:

Macro.cr
implementations/mruby/FormatString.cr
implementations/mruby/Implementation.cr
implementations/mruby/KeywordArgStruct.cr
macros/ArgConversions.cr
macros/ArgTuples.cr
macros/FunctionCalls.cr
macros/FunctionGenerators.cr
macros/ObjectAllocations.cr
macros/RubyConversions.cr
macros/RubyTypes.cr
macros/UnionCasts.cr
macros/WrapAll.cr
macros/WrapMethodIndex.cr
macros/Wrappers.cr

Macro Summary

Macro Detail

macro add_copy_constructor(rb_interpreter, crystal_class, context, verbose) #

[View source]
macro add_default_constructor(rb_interpreter, crystal_class, verbose) #

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

[View source]
macro add_enum_inspect(rb_interpreter, crystal_class, verbose) #

[View source]
macro add_enum_to_s(rb_interpreter, crystal_class, verbose) #

[View source]
macro add_equality_method(rb_interpreter, crystal_class, context, verbose) #

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

[View source]
macro call_and_return(rb, proc, regular_args, converted_args, operator = "", options = {} of Symbol => NoReturn, block_ptr = nil) #

[View source]
macro call_and_return_instance_method(rb, proc, converted_obj, converted_args, operator = "", options = {} of Symbol => NoReturn, block_ptr = nil) #

[View source]
macro call_and_return_keyword_instance_method(rb, proc, converted_obj, converted_regular_args, keyword_args, kw_args, operator = "", options = {} of Symbol => NoReturn, block_ptr = nil) #

[View source]
macro call_and_return_keyword_method(rb, proc, converted_regular_args, keyword_args, kw_args, operator = "", options = {} of Symbol => NoReturn, block_ptr = nil) #

[View source]
macro cast_to_union_value(rb, value, types, options = {} of Symbol => NoReturn, debug_information = nil) #

[View source]
macro check_and_cast_resolved_union_type(rb, value, type, raw_type, options = {} of Symbol => NoReturn, debug_information = nil) #

[View source]
macro check_and_cast_union_type(rb, value, type, raw_type, options = {} of Symbol => NoReturn, debug_information = nil) #

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

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

[View source]
macro convert_from_ruby_to_crystal(rb, arg, arg_type, options = {} of Symbol => NoReturn, debug_information = nil) #

[View source]
macro convert_regex_from_crystal_to_ruby(rb, value) #

[View source]
macro convert_regex_from_ruby_to_crystal(rb, arg, arg_type) #

[View source]
macro convert_regular_arg(rb, arg, arg_type, options = {} of Symbol => NoReturn, debug_information = nil) #

Converts Ruby values to Crystal values


[View source]
macro convert_regular_args(rb, args, regular_args, options = {} of Symbol => NoReturn, debug_information = nil) #

[View source]
macro format_char(arg, options = {} of Symbol => NoReturn) #

[View source]
macro format_string(args, options = {} of Symbol => NoReturn) #

[View source]
macro generate_arg_tuple(rb, args, options = {} of Symbol => NoReturn) #

[View source]
macro generate_keyword_argument_struct(rb_interpreter, keyword_args) #

[View source]
macro generate_keyword_names(rb_interpreter, keyword_args) #

[View source]
macro get_converted_args(rb, regular_args, options = {} of Symbol => NoReturn) #

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

[View source]
macro load_args_into_vars(args, format_string, regular_arg_tuple, block_ptr = nil) #

[View source]
macro load_kw_args_into_vars(regular_args, keyword_args, format_string, regular_arg_tuple, block_ptr = nil) #

[View source]
macro new_rb_data_func(&b) #

[View source]
macro new_rb_func(&b) #

[View source]
macro pointer_type(type, options = {} of Symbol => NoReturn) #

[View source]
macro resolve_format_char(arg, raw_arg, options = {} of Symbol => NoReturn) #

[View source]
macro resolve_from_ruby_to_crystal(rb, arg, arg_type, raw_arg_type, options = {} of Symbol => NoReturn, debug_information = nil) #

[View source]
macro resolve_pointer_type(type, raw_type, options = {} of Symbol => NoReturn) #

[View source]
macro resolve_regular_arg(rb, arg, arg_type, raw_arg_type, options = {} of Symbol => NoReturn, debug_information = nil) #

[View source]
macro resolve_type_in_ruby(type, raw_type, options = {} of Symbol => NoReturn) #

[View source]
macro type_in_ruby(type, options = {} of Symbol => NoReturn) #

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

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

[View source]
macro wrap_all_instance_methods(rb_interpreter, crystal_class, exclusions, verbose, context = nil, use_enum_methods = false, wrap_equality_method = false, other_source = nil, later_ancestors = nil) #

[View source]
macro wrap_class_method_with_args(rb_interpreter, crystal_class, name, proc, regular_args = nil, operator = "", options = {} of Symbol => NoReturn) #

[View source]
macro wrap_class_method_with_keyword_args(rb_interpreter, crystal_class, name, proc, keyword_args, regular_args = nil, operator = "", options = {} of Symbol => NoReturn) #

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

[View source]
macro wrap_constructor_function_with_args(rb_interpreter, crystal_class, proc, regular_args = nil, operator = "", options = {} of Symbol => NoReturn) #

[View source]
macro wrap_constructor_function_with_keyword_args(rb_interpreter, crystal_class, proc, keyword_args, regular_args = nil, operator = "", options = {} of Symbol => NoReturn) #

[View source]
macro wrap_equality_function(rb_interpreter, crystal_class, name, proc, operator = "", options = {} of Symbol => NoReturn) #

[View source]
macro wrap_instance_function_with_args(rb_interpreter, crystal_class, name, proc, regular_args = nil, operator = "", options = {} of Symbol => NoReturn) #

[View source]
macro wrap_instance_function_with_keyword_args(rb_interpreter, crystal_class, name, proc, keyword_args, regular_args = nil, operator = "", options = {} of Symbol => NoReturn) #

[View source]
macro wrap_method_index(rb_interpreter, 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, return_nil = false, block_arg_number = nil, block_return_type = nil, store_block_arg = false, other_source = nil) #

[View source]
macro wrap_module_function_with_args(rb_interpreter, under_module, name, proc, regular_args = nil, operator = "", options = {} of Symbol => NoReturn) #

[View source]
macro wrap_module_function_with_keyword_args(rb_interpreter, under_module, name, proc, keyword_args, regular_args = nil, operator = "", options = {} of Symbol => NoReturn) #

[View source]