emproof-com / nyxstone

Nyxstone: assembly / disassembly library based on LLVM, implemented in C++ with Rust and Python bindings, maintained by emproof.com
https://www.emproof.com
MIT License
231 stars 6 forks source link

Refactor to return errors instead of using exceptions #38

Closed stuxnot closed 7 months ago

stuxnot commented 7 months ago

When using nyxstone on apple m1 devices, throwing exceptions always lead to SIGBUS. This MR refactors nyxstone to use tl/expected.hpp instead of exceptions.