mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add backtrace() and print_backtrace()
This commit is contained in:
parent
76e67ff239
commit
a1c19840ce
11 changed files with 242 additions and 41 deletions
|
@ -5,12 +5,17 @@
|
|||
#include <vector>
|
||||
#include "BroList.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Val, zeek);
|
||||
|
||||
namespace zeek {
|
||||
|
||||
class VectorVal;
|
||||
class RecordType;
|
||||
template <class T> class IntrusivePtr;
|
||||
using Args = std::vector<zeek::IntrusivePtr<zeek::Val>>;
|
||||
|
||||
using ValPtr = IntrusivePtr<Val>;
|
||||
using VectorValPtr = IntrusivePtr<VectorVal>;
|
||||
using RecordTypePtr = IntrusivePtr<RecordType>;
|
||||
|
||||
using Args = std::vector<ValPtr>;
|
||||
|
||||
/**
|
||||
* Converts a legacy-style argument list for use in modern Zeek function
|
||||
|
@ -22,4 +27,6 @@ using Args = std::vector<zeek::IntrusivePtr<zeek::Val>>;
|
|||
*/
|
||||
Args val_list_to_args(const val_list& vl);
|
||||
|
||||
VectorValPtr MakeCallArgumentVector(const Args& vals, const RecordTypePtr& types);
|
||||
|
||||
} // namespace zeek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue