mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
fixes for standalone C++ scripts making types & variables/functions available
This commit is contained in:
parent
fb9c73fa86
commit
725aa558a7
13 changed files with 125 additions and 19 deletions
|
@ -303,6 +303,9 @@ void CPPCompile::GenEpilog()
|
|||
CheckInitConsistency(to_do);
|
||||
auto nc = GenDependentInits(to_do);
|
||||
|
||||
if ( standalone )
|
||||
GenStandaloneActivation();
|
||||
|
||||
NL();
|
||||
Emit("void init__CPP()");
|
||||
|
||||
|
@ -319,6 +322,9 @@ void CPPCompile::GenEpilog()
|
|||
NL();
|
||||
InitializeFieldMappings();
|
||||
|
||||
if ( standalone )
|
||||
Emit("standalone_init__CPP();");
|
||||
|
||||
EndBlock(true);
|
||||
|
||||
GenInitHook();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue