mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
18 lines
No EOL
386 B
C++
18 lines
No EOL
386 B
C++
#include "rr.h"
|
|
|
|
namespace rr {
|
|
|
|
void Value::Init() {
|
|
ClassBuilder("Value").
|
|
defineMethod("Equals", &Equals).
|
|
defineMethod("StrictEquals", &StrictEquals);
|
|
}
|
|
|
|
VALUE Value::Equals(VALUE self, VALUE other) {
|
|
return Convert(Value(self)->Equals(Value(other)));
|
|
}
|
|
|
|
VALUE Value::StrictEquals(VALUE self, VALUE other) {
|
|
return Convert(Value(self)->StrictEquals(Value(other)));
|
|
}
|
|
} |