mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Remove obsolete ZEEK_FORWARD_DECLARE_NAMESPACED macros
This commit is contained in:
parent
8c4092a0ad
commit
4ad08172d0
121 changed files with 722 additions and 547 deletions
|
@ -274,17 +274,3 @@ extern const char* BRO_VERSION_FUNCTION();
|
|||
#define ZEEK_LSAN_DISABLE(x)
|
||||
#define ZEEK_LSAN_DISABLE_SCOPE(x)
|
||||
#endif
|
||||
|
||||
// Note: macros for internal use only during deprecation/namespacing process.
|
||||
// This uses funny VA_ARGS tricks so that we can overload the name and have multiple macros for
|
||||
// varying namespace lengths.
|
||||
#define GET_MACRO(_0, _1, _2, _3, _4, NAME, ...) NAME
|
||||
#define ZEEK_FORWARD_DECLARE_NAMESPACED( ... ) GET_MACRO(_0, ##__VA_ARGS__, ZEEK_FDN_4, ZEEK_FDN_3, ZEEK_FDN_2, ZEEK_FDN_1, ZEEK_FDN_0)(__VA_ARGS__)
|
||||
#define ZEEK_FDN_0()
|
||||
#define ZEEK_FDN_1(cls)
|
||||
#define ZEEK_FDN_2(cls, ns) \
|
||||
namespace ns { class cls; }
|
||||
#define ZEEK_FDN_3(cls, ns1, ns2) \
|
||||
namespace ns1::ns2 { class cls; }
|
||||
#define ZEEK_FDN_4(cls, ns1, ns2, ns3) \
|
||||
namespace ns1::ns2::ns3 { class cls; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue