mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
script_opt/CPP: errors, recursive type fixes, fix embedded comments
better (than nothing) run-time errors for compiled scripts fixes for dealing with recursive types in compiled scripts fix for values in compiled scripts containing embedded comment markers
This commit is contained in:
parent
b7f7d32bf7
commit
c0dd2b4e81
27 changed files with 181 additions and 65 deletions
|
@ -43,7 +43,7 @@ protected:
|
|||
class CPPStmt : public Stmt
|
||||
{
|
||||
public:
|
||||
CPPStmt(const char* _name) : Stmt(STMT_CPP), name(_name) { }
|
||||
CPPStmt(const char* _name, const char* filename, int line_num);
|
||||
|
||||
const std::string& Name() { return name; }
|
||||
|
||||
|
@ -71,6 +71,9 @@ protected:
|
|||
|
||||
std::string name;
|
||||
p_hash_type hash = 0ULL;
|
||||
|
||||
// A pseudo AST "call" node, used to support error localization.
|
||||
CallExprPtr ce;
|
||||
};
|
||||
|
||||
using CPPStmtPtr = IntrusivePtr<CPPStmt>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue