Fix requirement to use prefix when using $defined

This commit is contained in:
Christoffer Lerno
2025-12-13 00:38:19 +01:00
parent a0ab10c23e
commit 0c0d0ace4d
3 changed files with 33 additions and 11 deletions

View File

@@ -17,6 +17,8 @@
- Compiler crash when concatenating structs and arrays to an untyped list.
- Strings assigned to longer arrays would crash codegen, e.g. `char[10] x = "abcd`.
- Typedefs and structs with inline types supporting lengthof would not work with lengthof #2641.
- `$defined(foo())` now correctly errors if `foo()` would require a path.
- `@if($defined((char*){}.foo()))` does not error if `foo` is missing.
### Stdlib changes
- Add `ThreadPool` join function to wait for all threads to finish in the pool without destroying the threads.