RecurLoop/ Documentation
LanguageKit/APIv0.2.12

LanguageKit:Lifetime:adopt

Transfers an existing allocation to the current managed scope with a cleanup callback. For a valid allocation, failure also runs cleanup; returns null on failure.

Signature

recurloop
LanguageKit:Lifetime:adopt(Context*, u8*, i64, fn(Context*,u8*,i64)->void abi sysv-amd64, i64) -> u8*