-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use unstable feature gate for NUMA allocator
- Loading branch information
1 parent
c4cd383
commit caa6b02
Showing
4 changed files
with
26 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
// Allocation selector import | ||
use numanji::*; | ||
unstable_api! { | ||
// Allocation selector import | ||
use numanji::*; | ||
|
||
// Drive selection of allocator here | ||
autoselect!(); | ||
// Drive selection of allocator here | ||
autoselect!(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#[doc(hidden)] | ||
macro_rules! unstable_api { | ||
($($block:item)*) => { | ||
$( | ||
#[cfg(feature = "unstable")] | ||
$block | ||
)* | ||
} | ||
} |