1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#![forbid(unsafe_code)]
macro_rules! debug_write {
($($toks: tt)*) => {
write!($($toks)*).map_err(|_|
PartialVMError::new(StatusCode::UNKNOWN_INVARIANT_VIOLATION_ERROR)
.with_message("failed to write to buffer".to_string())
)
};
}
macro_rules! debug_writeln {
($($toks: tt)*) => {
writeln!($($toks)*).map_err(|_|
PartialVMError::new(StatusCode::UNKNOWN_INVARIANT_VIOLATION_ERROR)
.with_message("failed to write to buffer".to_string())
)
};
}
pub mod data_store;
pub mod gas_schedule;
pub mod loaded_data;
pub mod natives;
pub mod values;
#[cfg(test)]
mod unit_tests;