mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
binpac: BIT-1914: move &check implementation to new &enforce attribute
&check returns to being a no-op to avoid unintentionally breaking existing code.
This commit is contained in:
parent
0ecf7755ea
commit
8a1c8db02e
6 changed files with 23 additions and 10 deletions
|
@ -22,12 +22,12 @@ protected:
|
|||
string msg_;
|
||||
};
|
||||
|
||||
class ExceptionCheckViolation : public Exception
|
||||
class ExceptionEnforceViolation : public Exception
|
||||
{
|
||||
public:
|
||||
ExceptionCheckViolation(const char* where)
|
||||
ExceptionEnforceViolation(const char* where)
|
||||
{
|
||||
append(binpac_fmt("check violation : %s", where));
|
||||
append(binpac_fmt("&enforce violation : %s", where));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue