Sha256: f8b000e4e78b955bd35a1376728ec6adabd2a3aeb4a4a1fa8a41454bcccb296d
Contents?: true
Size: 650 Bytes
Versions: 16
Compression:
Stored size: 650 Bytes
Contents
#ifndef JOHNSON_SPIDERMONKEY_RUNTIME_H #define JOHNSON_SPIDERMONKEY_RUNTIME_H #include "spidermonkey.h" #define RAISE_JS_ERROR(rb_runtime, ex) \ do {\ JohnsonRuntime * _rt = NULL;\ Data_Get_Struct(rb_runtime, JohnsonRuntime, _rt);\ rb_funcall(CLASS_OF(rb_runtime), rb_intern("raise_js_exception"), 1,\ convert_to_ruby(_rt, ex)); \ } while(0) typedef struct { JSObject* global; JSRuntime* js; JSHashTable *jsids; // jsid -> rbid JSHashTable *rbids; // rbid -> jsid } JohnsonRuntime; JSContext* johnson_get_current_context(JohnsonRuntime* runtime); void init_Johnson_SpiderMonkey_Runtime(VALUE spidermonkey); #endif
Version data entries
16 entries across 16 versions & 2 rubygems