Sha256: 0a50edc39a34d616a1f04495359e17f967e67ce6f1462350a7583aa8870ab33a

Contents?: true

Size: 350 Bytes

Versions: 5

Compression:

Stored size: 350 Bytes

Contents

#include "../Data_Object.hpp"

namespace Rice::detail
{
  template<typename T>
  VALUE default_allocation_func(VALUE klass)
  {
    // Create a new Ruby object but since we do not yet have a C++ object
    // just pass a nullptr. It will be set via the Constructor call
    return TypedData_Wrap_Struct(klass, Data_Type<T>::rb_type(), nullptr);
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

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