mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
run-time warnings for scripts compiled to C++
This commit is contained in:
parent
b333d24e0e
commit
85a8f0739c
2 changed files with 11 additions and 0 deletions
|
@ -115,6 +115,9 @@ public:
|
|||
// function will not return but raise an InterpreterException.
|
||||
[[noreturn]] void CPPRuntimeError(const char* fmt, ...) __attribute__((format(printf, 2, 3)));
|
||||
|
||||
// Similar, but for warnings. This function does return.
|
||||
void CPPRuntimeWarning(const char* fmt, ...) __attribute__((format(printf, 2, 3)));
|
||||
|
||||
// Report a traffic weirdness, i.e., an unexpected protocol situation
|
||||
// that may lead to incorrectly processing a connection.
|
||||
void Weird(const char* name, const char* addl = "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue