mirror of
https://github.com/radareorg/radare2-rlang.git
synced 2026-11-10 04:11:28 -10:00
7 lines
144 B
Python
7 lines
144 B
Python
import r2lang
|
|
|
|
value = r2lang.cmd("?vi 2+3").strip()
|
|
if value != "5":
|
|
raise RuntimeError(f"unexpected command result: {value!r}")
|
|
print(value)
|