libfringe/src/debug/mod.rs

22 lines
508 B
Rust
Raw Normal View History

2015-04-16 20:06:57 +08:00
// This file is part of libfringe, a low-level green threading library.
2015-04-16 18:08:44 +08:00
// Copyright (c) 2015, edef <edef@edef.eu>
// See the LICENSE file included in this distribution.
2015-08-25 10:50:50 +08:00
pub use self::imp::*;
2015-08-25 10:50:50 +08:00
#[cfg(feature = "valgrind")]
#[path = "valgrind.rs"]
2015-08-25 10:50:50 +08:00
mod imp;
2015-08-25 10:50:50 +08:00
#[cfg(not(feature = "valgrind"))]
mod imp {
use stack;
#[derive(Debug)]
pub struct StackId;
/// No-op since no valgrind
impl StackId {
pub unsafe fn register<Stack: stack::Stack>(_stack: &mut Stack) -> StackId {
StackId
}
}
}