Try fixing compilation on Windows.

This commit is contained in:
losfair
2019-11-22 00:51:20 +08:00
parent c0ff110ca9
commit 6f3e6fab3b

View File

@ -66,12 +66,16 @@ impl fmt::Debug for InternalEvent {
}
/// Information for a breakpoint
#[cfg(unix)]
pub struct BreakpointInfo<'a> {
/// Fault.
#[cfg(unix)]
pub fault: Option<&'a FaultInfo>,
}
/// Information for a breakpoint
#[cfg(not(unix))]
pub struct BreakpointInfo {}
/// A trait that represents the functions needed to be implemented to generate code for a module.
pub trait ModuleCodeGenerator<FCG: FunctionCodeGenerator<E>, RM: RunnableModule, E: Debug> {
/// Creates a new module code generator.