Sha256: 64c4a2f504c16b5ad19982dc683ac56543c204ffbd86cf5969305593f8d747a3

Contents?: true

Size: 217 Bytes

Versions: 4

Compression:

Stored size: 217 Bytes

Contents

#include "custom_to_from_ruby.hpp"

template<>
Rice::Object to_ruby<short int>(short int const & a) {
  return INT2NUM(a);
}

template<>
short int from_ruby<short int>(Rice::Object x) {
  return FIX2INT(x.value());
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rbplusplus-1.0.1 test/headers/code/custom_to_from_ruby.cpp
rbplusplus-1.0 test/headers/code/custom_to_from_ruby.cpp
rbplusplus-0.9.1 test/headers/code/custom_to_from_ruby.cpp
rbplusplus-0.9 test/headers/code/custom_to_from_ruby.cpp