From: Michael Wallner Date: Tue, 25 Jul 2017 07:03:34 +0000 (+0200) Subject: add free() X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=5e9f9b2206d2dfdc532aa869c2e49866f3d7fb73;p=m6w6%2Fext-psi add free() --- diff --git a/psi.d/stdlib.psi b/psi.d/stdlib.psi index 63f2868..0b4a506 100644 --- a/psi.d/stdlib.psi +++ b/psi.d/stdlib.psi @@ -30,3 +30,8 @@ function psi\strtold(string $str, string &$end = null) : float { return to_float(strtold); set $end = to_string(*endptr); } + +function psi\free(object $memory) : void { + let ptr = objval($memory); + return void(free); +}