21 lines
703 B
TOML
21 lines
703 B
TOML
header = """
|
|
#define DEPRECATED_FUNC __attribute__((deprecated))
|
|
#define DEPRECATED_STRUCT __attribute__((deprecated))
|
|
#define DEPRECATED_ENUM __attribute__((deprecated))
|
|
#define DEPRECATED_FUNC_WITH_NOTE(...) __attribute__((deprecated(__VA_ARGS__)))
|
|
#define DEPRECATED_STRUCT_WITH_NOTE(...) __attribute__((deprecated(__VA_ARGS__)))
|
|
#define DEPRECATED_ENUM_WITH_NOTE(...) __attribute__((deprecated(__VA_ARGS__)))
|
|
"""
|
|
|
|
[fn]
|
|
deprecated = "DEPRECATED_FUNC"
|
|
deprecated_with_note = "DEPRECATED_FUNC_WITH_NOTE({})"
|
|
|
|
[struct]
|
|
deprecated = "DEPRECATED_STRUCT"
|
|
deprecated_with_note = "DEPRECATED_STRUCT_WITH_NOTE({})"
|
|
|
|
[enum]
|
|
deprecated = "DEPRECATED_ENUM"
|
|
deprecated_with_note = "DEPRECATED_ENUM_WITH_NOTE({})"
|