mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
tweaks for "-O C++" of BTest's with conditional code
This commit is contained in:
parent
5718046b96
commit
2f9272f2d5
3 changed files with 1 additions and 10 deletions
|
@ -9,11 +9,7 @@ event zeek_init()
|
|||
{
|
||||
local make_epoch_result = function(pass_name: string): function(ts: time): time
|
||||
{
|
||||
@if ( Version::at_least("4.1") )
|
||||
return function [pass_name] (ts: time): time
|
||||
@else
|
||||
return function (ts: time)
|
||||
@endif
|
||||
{
|
||||
print pass_name;
|
||||
return ts;
|
||||
|
@ -35,11 +31,7 @@ event zeek_init()
|
|||
{
|
||||
local make_epoch_result = function(pass_name: string): function(ts: time): time
|
||||
{
|
||||
@if ( Version::at_least("4.1") )
|
||||
return function [pass_name] (ts: time): time {
|
||||
@else
|
||||
return function (ts: time) {
|
||||
@endif
|
||||
print pass_name;
|
||||
return ts;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue