Skip to content

Commit

Permalink
F
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelang authored and axic committed Apr 24, 2019
1 parent e6e10b0 commit a18ba10
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions bindings/rust/evmc-vm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,18 +437,10 @@ pub trait VMInstance {
#[macro_export]
macro_rules! evmc_create_vm {
($__vm:ident, $__version:expr) => {
#[cfg(not(test))]
use evmc_vm::expr;
#[cfg(not(test))]
use evmc_vm::item;
#[cfg(not(test))]
use evmc_vm::evmc_sys as ffi;

#[cfg(test)]
use paste::item;
#[cfg(test)]
use paste::expr;

item! {
static [<$__vm _NAME>]: &'static str = stringify!($__vm);
static [<$__vm _VERSION>]: &'static str = $__version;
Expand Down Expand Up @@ -738,6 +730,7 @@ mod tests {
)
}
}
/*
evmc_create_vm!(FooVM, "0.5");
#[test]
fn create_macro() {
Expand Down Expand Up @@ -777,4 +770,5 @@ mod tests {
let _uncoerced = Box::into_raw(coerced) as *mut ffi::evmc_instance;
}
*/
}

0 comments on commit a18ba10

Please sign in to comment.