From f64c7647ac839aed48bf45c7a44cb73d5795a149 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 26 Mar 2026 17:02:13 +0100 Subject: [FEAT] Frontend: Add `try` syntax, frontend nsan (Nectar Sanitizer) checks added. And installer updates. Signed-off-by: Amlal El Mahrouss --- include/GenericsLibrary/std.nhh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/GenericsLibrary') diff --git a/include/GenericsLibrary/std.nhh b/include/GenericsLibrary/std.nhh index 677586e..d23779c 100644 --- a/include/GenericsLibrary/std.nhh +++ b/include/GenericsLibrary/std.nhh @@ -9,6 +9,9 @@ extern __nrt_alloc; extern __nrt_free; +/// Installs an error canary to catch any exceptions coming from C++ or Nectar. +#define try if (__nsan_install_error_canary() :== 0): + //@ Standard free let free_bytes(let ptr) { -- cgit v1.2.3