[oden-js] Get module exports
This commit is contained in:
parent
0c8367d29f
commit
16e6f1304c
4 changed files with 56 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ extern "C" {
|
|||
magic: ::std::os::raw::c_int,
|
||||
) -> JSValue;
|
||||
fn JS_MakeException_real() -> JSValue;
|
||||
|
||||
fn JS_ValueGetPtr_real(v: JSValue) -> *mut ::std::os::raw::c_void;
|
||||
}
|
||||
|
||||
pub unsafe fn JS_ValueGetTag(v: JSValue) -> i32 {
|
||||
|
|
@ -217,3 +217,7 @@ pub unsafe fn JS_NewCFunctionMagic(
|
|||
pub unsafe fn JS_MakeException() -> JSValue {
|
||||
JS_MakeException_real()
|
||||
}
|
||||
|
||||
pub unsafe fn JS_ValueGetPtr(v: JSValue) -> *mut ::std::os::raw::c_void {
|
||||
JS_ValueGetPtr_real(v)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -128,3 +128,7 @@ JSValue JS_NewCFunctionMagic_real(JSContext *ctx, JSCFunctionMagic *func, const
|
|||
JSValue JS_MakeException_real() {
|
||||
return JS_EXCEPTION;
|
||||
}
|
||||
|
||||
void *JS_ValueGetPtr_real(JSValue val) {
|
||||
return JS_VALUE_GET_PTR(val);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue