Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions cpubits/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,21 @@
/// }
/// ```
///
/// ## Use as an expression
///
/// It's also possible to use the macro as an expression, although in somewhat limited contexts
/// due to its attribute handling:
///
/// ```
/// fn detected_cpubits() -> u32 {
/// cpubits::cpubits! {
/// 16 => { 16 }
/// 32 => { 32 }
/// 64 => { 64 }
/// }
/// }
/// ```
///
/// # Selection rules
///
/// The macro augments `target_pointer_width`-based selection with specific overrides which promote
Expand Down