// This file is part of libfringe, a low-level green threading library. // Copyright (c) edef // Licensed under the Apache License, Version 2.0, or the MIT license , at your option. This file may not be // copied, modified, or distributed except according to those terms. pub use self::imp::*; #[cfg(feature = "valgrind")] #[path = "valgrind.rs"] mod imp; #[cfg(not(feature = "valgrind"))] mod imp { use stack; #[derive(Debug)] pub struct StackId; /// No-op since no valgrind impl StackId { pub fn register(_stack: &Stack) -> StackId { StackId } } }