Merge pull request #76 from gavofyork/fix_evmjit_comment
fixed rust-evmjit description of improper_ctypes usage
This commit is contained in:
commit
995f755211
@ -385,8 +385,8 @@ pub mod ffi {
|
|||||||
pub fn evmjit_exec(context: *mut JitContext) -> JitReturnCode;
|
pub fn evmjit_exec(context: *mut JitContext) -> JitReturnCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ExtHandle is not a C type, so we need to allow "improper_ctypes"
|
||||||
#[link(name="evmjit")]
|
#[link(name="evmjit")]
|
||||||
// ExtHandle does not have to by a C type
|
|
||||||
#[allow(improper_ctypes)]
|
#[allow(improper_ctypes)]
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn evmjit_create_context(data: *mut JitRuntimeData, ext: *mut ExtHandle) -> *mut JitContext;
|
pub fn evmjit_create_context(data: *mut JitRuntimeData, ext: *mut ExtHandle) -> *mut JitContext;
|
||||||
|
Loading…
Reference in New Issue
Block a user