/* SPDX-FileCopyrightText: © 2022-2024 Decompollaborate */ /* SPDX-License-Identifier: MIT */ #define RABBITIZER_DEF_INSTR_ID(prefix, caseBits, name, ...) \ RABBITIZER_INSTR_ID_##prefix##_##name, #define RABBITIZER_DEF_INSTR_ID_ALTNAME(prefix, caseBits, name, altname, ...) \ RABBITIZER_DEF_INSTR_ID(prefix, caseBits, name, __VA_ARGS__) typedef enum RabbitizerInstrId { #include "InstrIds.inc" RABBITIZER_INSTR_ID_ALL_LAST, RABBITIZER_INSTR_ID_ALL_MAX = RABBITIZER_INSTR_ID_ALL_LAST - 1 } RabbitizerInstrId; #undef RABBITIZER_DEF_INSTR_ID #undef RABBITIZER_DEF_INSTR_ID_ALTNAME