mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
d1e9088cf0
You can now create a JS object from Ruby-land without segfaulting
17 lines
207 B
C++
17 lines
207 B
C++
#ifndef RR_EQUIV
|
|
#define RR_EQUIV
|
|
|
|
namespace rr {
|
|
|
|
class Equiv {
|
|
public:
|
|
Equiv(VALUE val) : value(val) {}
|
|
inline operator VALUE() { return value; }
|
|
|
|
protected:
|
|
VALUE value;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|