Skip to content

Commit

Permalink
fix(gcore): add proper conditional compilation for stack_debug macro (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
StackOverflowExcept1on authored Dec 4, 2024
1 parent ea89849 commit 3bdeb8f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions gcore/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ impl AsRawPtr for ReservationId {}

/// Extensions for additional features.
pub mod ext {
use crate::stack_buffer;
use core::{
fmt::{self, Write as _},
mem::MaybeUninit,
#[cfg(any(feature = "debug", debug_assertions))]
use {
crate::stack_buffer::{self, MAX_BUFFER_SIZE},
core::{
fmt::{self, Write as _},
mem::MaybeUninit,
},
};
use gear_stack_buffer::MAX_BUFFER_SIZE;

/// Add a `data` string to the debug log.
///
Expand Down

0 comments on commit 3bdeb8f

Please sign in to comment.