mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
fixes for doing "script validation" to check for ZAM compile-ability
This commit is contained in:
parent
cae5d30c62
commit
2c5b5bb41f
3 changed files with 20 additions and 12 deletions
|
@ -13,8 +13,12 @@ class Stmt;
|
|||
void script_validation();
|
||||
|
||||
/**
|
||||
* Returns true if the given script statement (body) is valid.
|
||||
* Returns true if the given script statement (body) is valid. The
|
||||
* second argument indicates whether the statement is the body of a hook.
|
||||
*
|
||||
* Unlike script_validation(), does not report any errors, just returns
|
||||
* whether they are present.
|
||||
*/
|
||||
bool script_is_valid(const Stmt* s);
|
||||
bool script_is_valid(const Stmt* s, bool is_in_hook);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue