mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
17 lines
347 B
C++
17 lines
347 B
C++
// See the file "COPYING" in the main distribution directory for copyright.
|
|
|
|
#include "zeek/script_opt/TempVar.h"
|
|
#include "zeek/Reporter.h"
|
|
|
|
|
|
namespace zeek::detail {
|
|
|
|
TempVar::TempVar(int num, const TypePtr& t, ExprPtr _rhs) : type(t)
|
|
{
|
|
char buf[8192];
|
|
snprintf(buf, sizeof buf, "#%d", num);
|
|
name = buf;
|
|
id = nullptr;
|
|
}
|
|
|
|
} // zeek::detail
|