rabbitizer/tables/templates/rust/abi_enum.tablers.template

20 lines
472 B
Plaintext
Raw Normal View History

2023-05-02 16:41:02 -04:00
/* SPDX-FileCopyrightText: © 2022-2023 Decompollaborate */
/* SPDX-License-Identifier: MIT */
#define HASH #
#define HASH_EXPANSION(x) x
#define SPECIAL_RS_TAG(...) HASH_EXPANSION(HASH)[__VA_ARGS__]
2023-04-30 15:58:01 -04:00
#define RABBITIZER_DEF_ABI(name) 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 Abi {
#include "Abi.inc"
2023-04-30 15:58:01 -04:00
RABBITIZER_DEF_ABI(MAX)
}
#undef RABBITIZER_DEF_ABI