Skip to content

Commit

Permalink
Update bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
DelSkayn committed Apr 22, 2024
1 parent ec72452 commit 3bf8335
Show file tree
Hide file tree
Showing 9 changed files with 1,616 additions and 1,518 deletions.
22 changes: 0 additions & 22 deletions core/src/value/module.rs.old
Original file line number Diff line number Diff line change
Expand Up @@ -714,28 +714,6 @@ impl<'js> Module<'js> {
Ok(module)
}

unsafe extern "C" fn eval_fn<D>(
ctx: *mut qjs::JSContext,
ptr: *mut qjs::JSModuleDef,
) -> qjs::c_int
where
D: ModuleDef,
{
let ctx = Ctx::from_ptr(ctx);
// Should never be null
debug_assert_ne!(ptr, ptr::null_mut());
let ptr = NonNull::new_unchecked(ptr);
let module = Self::from_module_def(ctx.clone(), ptr);
let mut exports = Exports::new(ctx.clone());
match D::evaluate(&ctx, &mut exports).and_then(|_| exports.apply(module)) {
Ok(_) => 0,
Err(error) => {
error.throw(&ctx);
-1
}
}
}

/// Evaluates an unevaluated module.
///
/// # Safety
Expand Down
389 changes: 202 additions & 187 deletions sys/src/bindings/aarch64-apple-darwin.rs

Large diffs are not rendered by default.

389 changes: 202 additions & 187 deletions sys/src/bindings/aarch64-unknown-linux-gnu.rs

Large diffs are not rendered by default.

389 changes: 202 additions & 187 deletions sys/src/bindings/aarch64-unknown-linux-musl.rs

Large diffs are not rendered by default.

389 changes: 202 additions & 187 deletions sys/src/bindings/i686-pc-windows-gnu.rs

Large diffs are not rendered by default.

389 changes: 202 additions & 187 deletions sys/src/bindings/i686-unknown-linux-gnu.rs

Large diffs are not rendered by default.

389 changes: 202 additions & 187 deletions sys/src/bindings/x86_64-apple-darwin.rs

Large diffs are not rendered by default.

389 changes: 202 additions & 187 deletions sys/src/bindings/x86_64-pc-windows-gnu.rs

Large diffs are not rendered by default.

389 changes: 202 additions & 187 deletions sys/src/bindings/x86_64-unknown-linux-musl.rs

Large diffs are not rendered by default.

0 comments on commit 3bf8335

Please sign in to comment.