mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Script optimization maintenance and updates:
maintenance fixes for variadic run-time checks, '_' placeholder identifier "-O allow-cond" permits compiling scripts to C++ when influenced by @if conditionals more robust standalone compile-to-C++ properties fix for nested "when" statements test suite updates
This commit is contained in:
parent
bc0284aefa
commit
ee0a6f6835
40 changed files with 257 additions and 158 deletions
|
@ -338,14 +338,7 @@ void CPPCompile::GenStandaloneActivation()
|
|||
|
||||
void CPPCompile::GenLoad()
|
||||
{
|
||||
// First, generate a hash unique to this compilation.
|
||||
auto t = util::current_time();
|
||||
auto th = hash<double>{}(t);
|
||||
|
||||
total_hash = merge_p_hashes(total_hash, th);
|
||||
|
||||
Emit("register_scripts__CPP(%s, standalone_init__CPP);", Fmt(total_hash));
|
||||
|
||||
printf("global init_CPP_%llu = load_CPP(%llu);\n", total_hash, total_hash);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue