mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-05 18:55:27 +00:00
python: add __version__
This commit is contained in:
parent
0950f2e18b
commit
eb5a762452
|
@ -1,4 +1,4 @@
|
||||||
# Unicorn Python bindings, by Nguyen Anh Quynnh <aquynh@gmail.com>
|
# Unicorn Python bindings, by Nguyen Anh Quynnh <aquynh@gmail.com>
|
||||||
from . import arm_const, arm64_const, mips_const, sparc_const, m68k_const, x86_const
|
from . import arm_const, arm64_const, mips_const, sparc_const, m68k_const, x86_const
|
||||||
from .unicorn_const import *
|
from .unicorn_const import *
|
||||||
from .unicorn import Uc, uc_version, uc_arch_supported, version_bind, debug, UcError
|
from .unicorn import Uc, uc_version, uc_arch_supported, version_bind, debug, UcError, __version__
|
||||||
|
|
|
@ -81,6 +81,8 @@ if _found == False:
|
||||||
raise ImportError("ERROR: fail to load the dynamic library.")
|
raise ImportError("ERROR: fail to load the dynamic library.")
|
||||||
|
|
||||||
|
|
||||||
|
__version__ = "%s.%s" %(UC_API_MAJOR, UC_API_MINOR)
|
||||||
|
|
||||||
# setup all the function prototype
|
# setup all the function prototype
|
||||||
def _setup_prototype(lib, fname, restype, *argtypes):
|
def _setup_prototype(lib, fname, restype, *argtypes):
|
||||||
getattr(lib, fname).restype = restype
|
getattr(lib, fname).restype = restype
|
||||||
|
|
Loading…
Reference in a new issue