getOrThrow

Extension to safely get result or throw Capstone-specific error.

Example:

val instructions = engine.disassemble(code).getOrThrow()