Files
c3c/lib/std/core
konimarti 190dc246b3 mem: add macro to assert on memory leak in scope (#1792)
* mem: add macro to assert on memory leak in scope

Implement `mem::@assert_leak` to assert on a memory leak in the scope of
the macro body. Memory report for the leak can be disabled by setting
the boolean argument to false.

* fix: add conditional compilation flags

* Moved the code into `mem.c3` and made it a builtin.

---------

Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
2025-01-10 13:33:33 +01:00
..
2023-07-26 14:01:24 +02:00
2025-01-10 00:06:42 +01:00
2025-01-08 22:13:49 +01:00
2024-12-28 22:46:26 +01:00
2025-01-08 22:13:49 +01:00