mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Remove deprecated DECLARE_OPAQUE_VALUE macro
This commit is contained in:
parent
260a8afebe
commit
cbe612400c
1 changed files with 0 additions and 13 deletions
|
@ -91,19 +91,6 @@ private:
|
||||||
std::unordered_map<std::string, Factory*> _types;
|
std::unordered_map<std::string, Factory*> _types;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Legacy macro to insert into an OpaqueVal-derived class's declaration. Overrides the "old" serialization methods
|
|
||||||
* DoSerialize and DoUnserialize.
|
|
||||||
* @deprecated Use DECLARE_OPAQUE_VALUE_DATA instead. Remove in v7.1.
|
|
||||||
*/
|
|
||||||
#define DECLARE_OPAQUE_VALUE(T) \
|
|
||||||
friend class zeek::OpaqueMgr::Register<T>; \
|
|
||||||
friend zeek::IntrusivePtr<T> zeek::make_intrusive<T>(); \
|
|
||||||
broker::expected<broker::data> DoSerialize() const override; \
|
|
||||||
bool DoUnserialize(const broker::data& data) override; \
|
|
||||||
const char* OpaqueName() const override { return #T; } \
|
|
||||||
static zeek::OpaqueValPtr OpaqueInstantiate() { return zeek::make_intrusive<T>(); }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Macro to insert into an OpaqueVal-derived class's declaration. Overrides the "new" serialization methods
|
* Macro to insert into an OpaqueVal-derived class's declaration. Overrides the "new" serialization methods
|
||||||
* DoSerializeData and DoUnserializeData.
|
* DoSerializeData and DoUnserializeData.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue