Sha256: 737fddfc6db9ec08d1f20d39412e182873c2f37522f37db03a2d63e63a8ae83a

Contents?: true

Size: 679 Bytes

Versions: 34

Compression:

Stored size: 679 Bytes

Contents

#ifndef Rice__global_function__hpp_
#define Rice__global_function__hpp_

#include "Arg.hpp"

namespace Rice
{

  /**
   * Helper forwarder method to easily wrap
   * globally available functions. This simply
   * forwards off a call to define_module_function
   * on rb_mKernel
   */
  template<typename Func_T>
  void define_global_function(
      char const * name,
      Func_T func,
      Arguments* arguments = 0);

  // FIXME: See Module::define_method with Arg
  template<typename Func_T>
  void define_global_function(
      char const * name,
      Func_T func,
      Arg const& arg);
  

} // Rice

#include "global_function.ipp"

#endif // Rice__global_function__hpp_

Version data entries

34 entries across 34 versions & 6 rubygems

Version Path
rice-3.0.0 rice/global_function.hpp
rice2-2.2.1 rice/global_function.hpp
rice2-2.2.0 rice/global_function.hpp
rice-2.2.0 rice/global_function.hpp
rice-2.1.3 rice/global_function.hpp
rice-2.1.2 rice/global_function.hpp
rice-2.1.1 rice/global_function.hpp
rice-2.1.0 rice/global_function.hpp
rice-2.0.0 rice/global_function.hpp
rice-1.7.0 rice/global_function.hpp
rice-1.6.3 rice/global_function.hpp
jameskilton-rice-1.2.0 rice/global_function.hpp
rice-1.6.2 rice/global_function.hpp
rice-1.6.1 rice/global_function.hpp
rice-1.6.0 rice/global_function.hpp
rice-1.6.0.pre rice/global_function.hpp
rice-1.5.3 rice/global_function.hpp
rice-1.5.2 rice/global_function.hpp
keyme-rice-1.5.1.keyme1 rice/global_function.hpp
keyme-rice-1.5.1.keyme rice/global_function.hpp