Sha256: 56b3376024b7680c8c0b8306c53095a4f49496820424e8039a5c7adba2d702a4

Contents?: true

Size: 496 Bytes

Versions: 5

Compression:

Stored size: 496 Bytes

Contents

#include "cpp_api/Module.hpp"

template<typename Function_T>
void Rice::define_global_function(char const * name, Function_T&& func, MethodInfo* methodInfo)
{
  Module(rb_mKernel).define_module_function(name, std::forward<Function_T>(func), methodInfo);
}

template<typename Function_T, typename...Arg_Ts>
void Rice::define_global_function(char const * name, Function_T&& func, Arg_Ts const& ...args)
{
  Module(rb_mKernel).define_module_function(name, std::forward<Function_T>(func), args...);
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rice-4.0.4 rice/global_function.ipp
rice-4.0.3 rice/global_function.ipp
rice-4.0.2 rice/global_function.ipp
rice-4.0.1 rice/global_function.ipp
rice-4.0.0 rice/global_function.ipp