mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Merge remote-tracking branch 'origin/topic/awelzel/2285-assert-statement'
* origin/topic/awelzel/2285-assert-statement: NEWS: Small section about assert statement Stmt: Rework assertion hooks break semantics Stmt: Introduce assert statement and related hooks ZeekArgs: Helper for empty arguments Reporter: Allow AssertStmt to throw InterpreterException Lift backtrace() code into Func.{h,cc}
This commit is contained in:
commit
2f1ea789d1
50 changed files with 783 additions and 47 deletions
|
@ -919,6 +919,11 @@ StmtPtr InitStmt::DoReduce(Reducer* c)
|
|||
return ThisPtr();
|
||||
}
|
||||
|
||||
StmtPtr AssertStmt::Duplicate()
|
||||
{
|
||||
return SetSucc(new AssertStmt(cond->Duplicate(), msg ? msg->Duplicate() : nullptr));
|
||||
}
|
||||
|
||||
StmtPtr WhenStmt::Duplicate()
|
||||
{
|
||||
FuncType::CaptureList* cl_dup = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue