rabbitizer/tables/templates/rust/instr_suffix_enum.tablers.template
2024-01-28 12:16:11 -03:00

22 lines
551 B
Plaintext

/* SPDX-FileCopyrightText: © 2022-2024 Decompollaborate */
/* SPDX-License-Identifier: MIT */
#define HASH #
#define HASH_EXPANSION(x) x
#define SPECIAL_RS_TAG(...) HASH_EXPANSION(HASH)[__VA_ARGS__]
#define RAB_DEF_INSTRSUFFIX(prefix, name) prefix##_##name,
SPECIAL_RS_TAG(repr(u32))
SPECIAL_RS_TAG(derive(Debug, Copy, Clone, Hash, PartialEq, Eq))
SPECIAL_RS_TAG(allow(non_camel_case_types))
pub enum InstrSuffix {
RAB_DEF_INSTRSUFFIX(ALL, NONE)
#include "InstrSuffix.inc"
RAB_DEF_INSTRSUFFIX(ALL, MAX)
}
#undef RAB_DEF_INSTRSUFFIX