microsoft/qdk

Public

mirrored from https://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.23.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

source/allocator/src/lib.rs

15lines · modeblame

93f01d0dIan Davis2 years ago1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
91589c3aIan Davis2 years ago4#[cfg(not(any(target_family = "wasm")))]
93f01d0dIan Davis2 years ago5pub mod mimalloc;
6
7/// Declare a global allocator if the platform supports it.
8#[macro_export]
9macro_rules! assign_global {
10() => {
91589c3aIan Davis2 years ago11#[cfg(not(any(target_family = "wasm")))]
93f01d0dIan Davis2 years ago12#[global_allocator]
13static GLOBAL: allocator::mimalloc::Mimalloc = allocator::mimalloc::Mimalloc;
14};
15}