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