]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
new: dev: Add MOVE_OWNERSHIP() macro for transferring pointer ownership
authorOndřej Surý <ondrej@isc.org>
Mon, 23 Mar 2026 10:06:48 +0000 (11:06 +0100)
committerOndřej Surý <ondrej@isc.org>
Mon, 23 Mar 2026 10:06:48 +0000 (11:06 +0100)
A helper macro that returns the current value of a pointer and sets
it to NULL in one expression, useful for transferring ownership in
designated initializers.

Merge branch 'ondrej/TAKE_OWNERSHIP-macro' into 'main'

See merge request isc-projects/bind9!11724


Trivial merge