mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
script optimization fixes:
new initialization model for standalone C++ scripts type coercion fix ZAM fix for compiling using C++ optimizer disambiguate empty constructors
This commit is contained in:
parent
dbb2aa88a6
commit
134f8f2ef5
14 changed files with 80 additions and 96 deletions
|
@ -11,6 +11,10 @@ using namespace std;
|
|||
|
||||
void CPPCompile::GenStmt(const Stmt* s)
|
||||
{
|
||||
auto loc = s->GetLocationInfo();
|
||||
if ( loc != &detail::no_location && s->Tag() != STMT_LIST )
|
||||
Emit("// %s:%s", loc->filename, to_string(loc->first_line));
|
||||
|
||||
switch ( s->Tag() )
|
||||
{
|
||||
case STMT_INIT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue