Sha256: 11e28a9c50aee5b9991a7684116e5e4359f69ae11bd5e6ed48c6962a7806436b

Contents?: true

Size: 467 Bytes

Versions: 8

Compression:

Stored size: 467 Bytes

Contents

#include "to_from_ruby.h"

namespace to_from_ruby {

  const MyType& needsToRuby(int value) {
    MyType *type = new MyType();
    type->myValue = value;
    return *type;
  }

  // But rb++ should only make one to_ruby definition or the compiler
  // will poop
  const MyType& someOtherMethod(int value) {
    MyType *type = new MyType();
    type->myValue = value;
    return *type;
  };

  int usingConstString(const std::string& in) {
    return in.size();
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rbplusplus-1.4.0 test/headers/to_from_ruby_source.cpp
rbplusplus-1.3.0 test/headers/to_from_ruby_source.cpp
rbplusplus-1.2.1 test/headers/to_from_ruby_source.cpp
rbplusplus-1.2.0 test/headers/to_from_ruby_source.cpp
rbplusplus-1.1.0 test/headers/to_from_ruby_source.cpp
rbplusplus-1.0.3 test/headers/to_from_ruby_source.cpp
rbplusplus-1.0.1 test/headers/to_from_ruby_source.cpp
rbplusplus-1.0 test/headers/to_from_ruby_source.cpp