mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
updates for compile-to-C++
This commit is contained in:
parent
16a16948a1
commit
bcebe27ced
4 changed files with 91 additions and 9 deletions
|
@ -15,10 +15,17 @@ namespace zeek::detail
|
|||
|
||||
// Appends v2 to the vector v1. A separate function because of the
|
||||
// need to support assignment cascades.
|
||||
inline ValPtr vector_append__CPP(VectorValPtr v1, ValPtr v2)
|
||||
inline ValPtr vector_append__CPP(VectorValPtr v1, const ValPtr& v2)
|
||||
{
|
||||
v1->Assign(v1->Size(), v2);
|
||||
return v2;
|
||||
return v1;
|
||||
}
|
||||
|
||||
// Appends vector v2 to the vector v1.
|
||||
inline ValPtr vector_vec_append__CPP(VectorValPtr v1, const VectorValPtr& v2)
|
||||
{
|
||||
v2->AddTo(v1.get(), false);
|
||||
return v1;
|
||||
}
|
||||
|
||||
// Unary vector operations.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue