// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#[cfg(not(any(target_family = "wasm")))]
pub mod mimalloc;
/// Declare a global allocator if the platform supports it.
#[macro_export]
macro_rules! assign_global {
() => {
#[cfg(not(any(target_family = "wasm")))]
#[global_allocator]
static GLOBAL: allocator::mimalloc::Mimalloc = allocator::mimalloc::Mimalloc;
};
}microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
allocator/src/lib.rs
15lines · modepreview