aboutsummaryrefslogtreecommitdiff
path: root/src/call_asm.rs
blob: 295277f3870be3e572eb5696bc9cc910f606bc40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/// An internal macro to invoke an assembly routine.
///
/// Depending on whether the unstable `inline-asm` feature is enabled, this will either call into
/// the inline assembly implementation directly, or through the FFI shim (see `asm/lib.rs`).
macro_rules! call_asm {
    ( $func:ident ( $($args:ident: $tys:ty),* ) $(-> $ret:ty)? ) => {{
        #[allow(unused_unsafe)]
        unsafe {
            match () {
                #[cfg(feature = "inline-asm")]
                () => crate::asm::inline::$func($($args),*),

                #[cfg(not(feature = "inline-asm"))]
                () => {
                    extern "C" {
                        fn $func($($args: $tys),*) $(-> $ret)?;
                    }

                    $func($($args),*)
                },
            }
        }
    }};
}
dump'>jarred/dump Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/docs/guides/binary/arraybuffer-to-string.md (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-10-12fix(install): re-evaluate overrides when removedbun-v1.0.6Gravatar dave caruso 3-3/+45
2023-10-12chore: add missing ending quote (#6436)Gravatar Luna 1-1/+1
2023-10-12feat(install): support npm overrides/yarn resolutions, one level deep only (#...Gravatar dave caruso 7-31/+640
2023-10-11fix #6416 (#6430)Gravatar Dylan Conway 2-1/+132
2023-10-11Bump WebKitGravatar Jarred Sumner 9-29/+29
2023-10-11Bump!Gravatar Jarred Sumner 1-1/+1
2023-10-11Update JSCUSocketsLoopIntegration.cppGravatar Dylan Conway 1-2/+2
2023-10-11Update installation.mdGravatar Colin McDonnell 1-10/+7