mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
simplify CopyVal() macro
This commit is contained in:
parent
c96dd5d5b3
commit
a32e1c593e
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ macro WARN(msg) ZAM_run_time_warning(Z_LOC, msg)
|
|||
macro BuildVal(v, t) ZVal(v, t)
|
||||
|
||||
# Returns a memory-managed-if-necessary copy of an existing value.
|
||||
macro CopyVal(v) (ZVal::IsManagedType(Z_TYPE) ? BuildVal((v).ToVal(Z_TYPE), Z_TYPE) : (v))
|
||||
macro CopyVal(v) (Z_IS_MANAGED ? BuildVal((v).ToVal(Z_TYPE), Z_TYPE) : (v))
|
||||
|
||||
# Managed assignments to the given target.
|
||||
macro AssignTarget(target, v) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue