Sha256: 5c6dcd30222697761d454c1537b56ffc5866a70622b0c4528b86f8831310facc

Contents?: true

Size: 447 Bytes

Versions: 3

Compression:

Stored size: 447 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;
  };

  void usingConstString(const std::string& in) {

  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rbplusplus-0.9.1 test/headers/to_from_ruby_source.cpp
rbplusplus-0.9 test/headers/to_from_ruby_source.cpp
rbplusplus-0.8 test/headers/to_from_ruby_source.cpp