Sha256: 85c29e7f20a02bde28821a40d1f320e03954c75df53e00b8cc1d8945cfdb9b48

Contents?: true

Size: 1.7 KB

Versions: 37

Compression:

Stored size: 1.7 KB

Contents

#include "rr.h"

namespace rr {

  void Message::Init() {
    ClassBuilder("Message").
      defineMethod("Get", &Get).
      defineMethod("GetSourceLine", &GetSourceLine).
      defineMethod("GetScriptResourceName", &GetScriptResourceName).
      defineMethod("GetScriptData", &GetScriptData).
      defineMethod("GetStackTrace", &GetStackTrace).
      defineMethod("GetLineNumber", &GetLineNumber).
      defineMethod("GetStartPosition", &GetStartPosition).
      defineMethod("GetEndPosition", &GetEndPosition).
      defineMethod("GetStartColumn", &GetEndColumn).
      defineSingletonMethod("kNoLineNumberInfo", &kNoLineNumberInfo).
      defineSingletonMethod("kNoColumnInfo", &kNoColumnInfo).
      store(&Class);
  }

  VALUE Message::Get(VALUE self) {
    return String(Message(self)->Get());
  }
  VALUE Message::GetSourceLine(VALUE self) {
    return String(Message(self)->GetSourceLine());
  }
  VALUE Message::GetScriptResourceName(VALUE self) {
    return Value(Message(self)->GetScriptResourceName());
  }
  VALUE Message::GetScriptData(VALUE self) {
    return Value(Message(self)->GetScriptData());
  }
  VALUE Message::GetStackTrace(VALUE self) {
    return Stack::Trace(Message(self)->GetStackTrace());
  }
  VALUE Message::GetLineNumber(VALUE self) {
    return INT2FIX(Message(self)->GetLineNumber());
  }
  VALUE Message::GetStartPosition(VALUE self) {
    return INT2FIX(Message(self)->GetStartPosition());
  }
  VALUE Message::GetEndPosition(VALUE self) {
    return INT2FIX(Message(self)->GetEndPosition());
  }
  VALUE Message::GetStartColumn(VALUE self) {
    return INT2FIX(Message(self)->GetStartColumn());
  }
  VALUE Message::GetEndColumn(VALUE self) {
    return INT2FIX(Message(self)->GetEndColumn());
  }
}

Version data entries

37 entries across 37 versions & 8 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/therubyracer-0.12.2/ext/v8/message.cc
therubyracer-0.12.3 ext/v8/message.cc
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/therubyracer-0.11.4/ext/v8/message.cc
therubyracer-xcode-0.12.3 ext/v8/message.cc
therubyracer-xcode-0.12.2 ext/v8/message.cc
therubyracer-tmpfork-0.12.2 ext/v8/message.cc
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/therubyracer-0.12.2/ext/v8/message.cc
therubyracer-0.12.2 ext/v8/message.cc
therubyracer-0.12.1 ext/v8/message.cc
therubyracer-discourse-0.12.0 ext/v8/message.cc
therubyracer-0.12.0 ext/v8/message.cc
therubyracer-0.11.4 ext/v8/message.cc
therubyracer-0.11.3 ext/v8/message.cc
therubyracer-0.11.2 ext/v8/message.cc
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/therubyracer-0.11.0/ext/v8/message.cc
therubyracer-0.11.1 ext/v8/message.cc
therubyracer-0.11.1beta1 ext/v8/message.cc
therubyracer-0.11.0 ext/v8/message.cc
therubyracer-0.11.0beta8-x86-freebsd-9 ext/v8/message.cc
therubyracer-0.11.0beta8-x86_64-linux ext/v8/message.cc