libfringe/src/debug/mod.rs

22 lines
502 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.
// Copyright (c) edef <edef@edef.eu>
2015-04-16 18:08:44 +08:00
// 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
}
}
}