Sha256: 6fe3f103e4e7a447709a2f3cea580c837e6bd1eecacf7dee9660506e83dbea3e

Contents?: true

Size: 1.42 KB

Versions: 25

Compression:

Stored size: 1.42 KB

Contents

#include "converters.h"
#include "v8_msg.h"
#include "v8_ref.h"

using namespace v8;

VALUE V8_C_Message;

VALUE V8_Wrap_Message(Handle<v8::Message> msg) {
  return V8_Ref_Create(V8_C_Message, msg);
}

VALUE v8_Message_Get(VALUE self) {
  Local<Message> message = V8_Ref_Get<Message>(self);
  Local<Value> str = message->Get();
  return V82RB(str);
}

VALUE v8_Message_GetSourceLine(VALUE self) {
  Local<Message> message = V8_Ref_Get<Message>(self);
  Local<Value> line = message->GetSourceLine();
  return V82RB(line);
}

VALUE v8_Message_GetScriptResourceName(VALUE self) {
  Local<Message> message = V8_Ref_Get<Message>(self);
  Handle<Value> name = message->GetScriptResourceName();
  return V82RB(name);
}

VALUE v8_Message_GetLineNumber(VALUE self) {
  Local<Message> message = V8_Ref_Get<Message>(self);
  return INT2FIX(message->GetLineNumber());
}

VALUE v8_Message_GetStartPosition(VALUE self) {
  Local<Message> message = V8_Ref_Get<Message>(self);
  return INT2FIX(message->GetStartPosition());
}

VALUE v8_Message_GetEndPosition(VALUE self) {
  Local<Message> message = V8_Ref_Get<Message>(self);
  return INT2FIX(message->GetEndPosition());
}

VALUE v8_Message_GetStartColumn(VALUE self) {
  Local<Message> message = V8_Ref_Get<Message>(self);
  return INT2FIX(message->GetStartColumn());
}

VALUE v8_Message_GetEndColumn(VALUE self) {
  Local<Message> message = V8_Ref_Get<Message>(self);
  return INT2FIX(message->GetEndColumn());
}

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
therubyracer-0.6.3 ext/v8/v8_msg.cpp
therubyracer-0.6.2 ext/v8/v8_msg.cpp
therubyracer-0.6.1 ext/v8/v8_msg.cpp
therubyracer-0.6.0 ext/v8/v8_msg.cpp
therubyracer-0.5.5 ext/v8/v8_msg.cpp
therubyracer-0.5.4 ext/v8/v8_msg.cpp
therubyracer-0.5.3 ext/v8/v8_msg.cpp
therubyracer-0.5.2-x86-darwin-10 ext/v8/v8_msg.cpp
therubyracer-0.5.2 ext/v8/v8_msg.cpp
therubyracer-0.5.1-x86-darwin-9 ext/v8/v8_msg.cpp
therubyracer-0.5.1-x86-darwin-10 ext/v8/v8_msg.cpp
therubyracer-0.5.1 ext/v8/v8_msg.cpp
therubyracer-0.5.0-x86-darwin-9 ext/v8/v8_msg.cpp
therubyracer-0.5.0-x86-linux ext/v8/v8_msg.cpp
therubyracer-0.5.0-x86_64-linux ext/v8/v8_msg.cpp
therubyracer-0.4.9-x86_64-linux ext/v8/v8_msg.cpp
therubyracer-0.5.0-x86-darwin-10 ext/v8/v8_msg.cpp
therubyracer-0.5.0 ext/v8/v8_msg.cpp
therubyracer-0.4.9-x86-linux ext/v8/v8_msg.cpp
therubyracer-0.4.9-x86-darwin-10 ext/v8/v8_msg.cpp