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
321 stars 16 forks source link

Refactor to return errors instead of using exceptions #38

Closed stuxnot closed 1 year ago

stuxnot commented 1 year 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.