From 8a6ed3a4ddf9c4e16bb4ddc3b8c5094bb937598b Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 4 Oct 2026 00:51:52 +0200 Subject: Update the old compiler with the new syntax --- source/common.elna | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/common.elna') diff --git a/source/common.elna b/source/common.elna index 428c4ec..65b0a65 100644 --- a/source/common.elna +++ b/source/common.elna @@ -78,4 +78,12 @@ begin end return result +proc free_and_nil*#[T](ptr: ^T) -> ^T +begin + if ptr <> nil then + free(ptr) + end +return nil + end. + -- cgit v1.2.3