Files
weee/bindings/python/capstone/sysz_const.py
T
iris 802798ce3c Squashed 'external/capstone/' content from commit e46f64fa
git-subtree-dir: external/capstone
git-subtree-split: e46f64fadb351e9ecd05264fab26f2772feb0994
2026-05-11 11:55:07 +02:00

18 lines
657 B
Python

# Copyright © 2024 Peace-Maker <peacemakerctf@gmail.com>
# SPDX-License-Identifier: BSD-3
# Compatibility header with pre v6 API
import capstone
import capstone.systemz
import capstone.systemz_const
setattr(capstone, "CS_ARCH_SYSZ", capstone.CS_ARCH_SYSTEMZ)
setattr(capstone, "__all__", getattr(capstone, "__all__") + ["CS_ARCH_SYSZ"])
compatibility_constants = [
(name.replace("SYSTEMZ", "SYSZ"), getattr(capstone.systemz_const, name))
for name in capstone.systemz_const.__dict__
if name.startswith("SYSTEMZ")
]
globals().update(compatibility_constants)
for name, value in compatibility_constants:
setattr(capstone.systemz, name, value)