mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
GH-1122: Allow initializing globals with calls to subdir BIFs
This commit is contained in:
parent
cf06ade325
commit
1bbae2368d
9 changed files with 65 additions and 18 deletions
|
@ -14,3 +14,13 @@
|
|||
|
||||
# Load BiFs defined by plugins.
|
||||
@load base/bif/plugins
|
||||
|
||||
# This sets up secondary/subdir BIFs such that they can be used by any
|
||||
# further scripts within their global initializations and is intended to be
|
||||
# the last thing done within this script. It's called within @if simply so
|
||||
# that it executes at parse-time. An alternative way to do that is to call
|
||||
# it during a global variable assignment/initialization. Formally adding a
|
||||
# @run directive to the language whose sole purpose is parse-time code
|
||||
# execution would be another idea.
|
||||
@if ( __init_secondary_bifs() )
|
||||
@endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue