Haskell bindings
These Haskell bindings make large use of c2hs to generate much of the code, so Unicorn's const_generator is not used. The emulator is based on the Either monad transformer. The IO monad is used to run the underlying Unicorn library, while the Either monad is used to handle errors. Instructions on how to build the bindings are located in bindings/haskell/README.TXT. The same samples found in samples/ can be found in bindings/haskell/samples. They should produce the same output, with slight differences in their error handling and messaging.
This commit is contained in:
16
bindings/haskell/src/include/unicorn_wrapper.h
Normal file
16
bindings/haskell/src/include/unicorn_wrapper.h
Normal file
@ -0,0 +1,16 @@
|
||||
#ifndef UNICORN_WRAPPER_H
|
||||
#define UNICORN_WRAPPER_H
|
||||
|
||||
#include <unicorn/unicorn.h>
|
||||
|
||||
/*
|
||||
* Wrap Unicorn's uc_close function and ignore the returned error code.
|
||||
*/
|
||||
void uc_close_wrapper(uc_engine *uc);
|
||||
|
||||
/*
|
||||
* Doesn't actually do anything.
|
||||
*/
|
||||
void uc_close_dummy(uc_engine *uc);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user