Christoffer Lerno
f0142e3b1a
Fix json check.
2025-08-01 17:07:37 +02:00
Christoffer Lerno
2c6ff00261
Fix alignment.
2025-08-01 10:55:04 +02:00
Christoffer Lerno
61a21203f4
Assigning string literal to char[<*>] stores pointer rather than characters. #2357
2025-08-01 10:32:53 +02:00
Christoffer Lerno
d7affc5028
Fix regression in file output placement.
2025-08-01 10:13:22 +02:00
Christoffer Lerno
eb9549a818
Release candidate 0.7.4
2025-08-01 00:06:16 +02:00
Christoffer Lerno
6d9906db0a
Fix implicit linking from macros when it's not valid to add dependencies.
2025-07-31 16:21:50 +02:00
Christoffer Lerno
334ee975b9
Assignment evaluation order now right->left, following C++17.
2025-07-31 11:49:42 +02:00
Christoffer Lerno
d600d0898c
Fix regression, not permitting macro parameters inlined into naked functions.
2025-07-30 10:38:37 +02:00
Christoffer Lerno
44f4efa5aa
Do not allow parameters in naked functions.
2025-07-30 01:01:56 +02:00
Christoffer Lerno
8151305701
Fix so that rethrow is detected as well.
2025-07-29 20:50:32 +02:00
Christoffer Lerno
3ac9bfc387
Allow accessing parameters in a naked function, just disallow return, this fixes #1955 .
2025-07-29 20:38:53 +02:00
BWindey
51b9cb85bc
Fix get_config_dir() implementation ( #2348 )
...
* Fix get_config_dir() implementation
* Formatting and fallback to home if the path is empty.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-29 19:11:56 +02:00
Christoffer Lerno
d805ff9782
Lambda deduplication would be incorrect when generated at the global scope.
2025-07-29 17:45:11 +02:00
Christoffer Lerno
fa9ba3f607
Not setting android-ndk resulted in a "set ndk-path" error.
2025-07-29 11:33:40 +02:00
Zack Puhl
9d2be2851b
Add @try Builtin ( #2333 )
...
* Add @try macro
* Add @try_catch. Update release notes.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-29 00:50:56 +02:00
Zack Puhl
2639338426
Support full paths with $embed ( #2335 )
...
* Support full paths with `$embed`
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-28 23:44:17 +02:00
Christoffer Lerno
d8daa4ac83
Fix dir check Win32 CI
2025-07-28 23:23:09 +02:00
Christoffer Lerno
6641155892
Lambdas now properly follow its attributes #2346 .
2025-07-28 19:49:40 +02:00
Christoffer Lerno
86034353ec
Remove unnecessary "ret" in naked functions #2344 .
2025-07-28 18:36:33 +02:00
Christoffer Lerno
944ef0fc8d
Fix incorrect LLVM output folder.
2025-07-28 18:07:47 +02:00
Christoffer Lerno
194b7c4772
Crash when parsing recursive type declaration #2345 .
2025-07-28 18:02:25 +02:00
m0tholith
6963e143a1
Add gitignore template to project creation
2025-07-28 10:39:55 +02:00
Christoffer Lerno
4977bd1d78
@format did not work correctly with macros #2341 .
2025-07-28 10:38:18 +02:00
Velikiy Kirill
a21e641748
LinkedHashMap: Fix head being null when initializing from map ( #2334 )
...
* LinkedHashMap: Fix head being null when initializing from map
2025-07-28 00:26:14 +02:00
Christoffer Lerno
208b0f6d0e
Fix issue where recursively creating a dir would be incorrectly marked as a failure the first time.
...
Place output in `out` by default for projects. Use temp folder for building at the command line.
2025-07-28 00:19:12 +02:00
Christoffer Lerno
0bc546595d
- Using @noreturn in a trailing body macro would not work properly #2326 .
...
- Bug when reporting error in a macro return would crash the compiler #2326 .
- Short body return expression would not have the correct span.
2025-07-26 02:03:02 +02:00
Velikiy Kirill
a673b4ad66
Add LinkedHashMap and LinkedHashSet implementations ( #2324 )
...
* Add LinkedHashMap and LinkedHashSet implementations
Add two new ordered collection types to std::collections:
- LinkedHashMap: insertion-order preserving hash map
- LinkedHashSet: insertion-order preserving hash set
2025-07-25 23:28:10 +02:00
Velikiy Kirill
9a68a5c063
HashSet: Contract message fixes
2025-07-25 23:06:18 +02:00
Velikiy Kirill
e790df539d
Add HashSet implementation ( #2322 )
...
* Add HashSet implementation
Add a generic HashSet with full allocator support and standard set operations.
- Basic operations: add/remove/contains/clear
- Set operations:union_set/intersection/symmetric_difference/difference/is_subset
- Memory management with allocator support
- Iteration support
- Automatic resizing with load factor control
* Add "add_all" "add_all_from" "remove_all" "remove_all_from"
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-25 19:53:39 +02:00
Christoffer Lerno
fbeb779335
Fix typo in wait_timeout
2025-07-24 14:12:39 +02:00
Christoffer Lerno
625bfa5713
Updated releasenotes.
2025-07-23 17:04:33 +02:00
Christoffer Lerno
943a294900
Fix missing const cast when casting a const int expression.
2025-07-23 17:03:43 +02:00
Christoffer Lerno
3400dd5e42
char[*] b = *(char[*]*)&a; would crash the compiler if a was a slice. #2320
2025-07-23 16:10:31 +02:00
Christoffer Lerno
e8b3c44de3
Add a "wchar" type.
2025-07-23 15:09:55 +02:00
Christoffer Lerno
9575698fa4
Add String conversion functions snake_case -> PascalCase and vice versa.
2025-07-23 00:26:44 +02:00
Christoffer Lerno
5f0a7dd63e
Rename AlignedRef -> UnalignedRef
2025-07-22 15:55:43 +02:00
Kiana
38bc11b7b8
Add libc::readlink() ( #2316 )
...
* Add libc::readlink()
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-22 15:46:23 +02:00
LowByteFox
04528aee1f
fix openbsd CI not uploading artifacts
2025-07-22 15:44:58 +02:00
LowByteFox
5c82747970
Improved OpenBSD support ( #2317 )
...
* add openbsd support, compiles and passses all tests
* fix backtrace
* gh actions should include openbsd artifacts
2025-07-22 15:15:20 +02:00
Christoffer Lerno
b45c337515
Contract fix.
2025-07-22 15:14:10 +02:00
Christoffer Lerno
9dc6b0e660
Added AlignedRef generic type.
2025-07-22 15:11:14 +02:00
Christoffer Lerno
428165590e
Add Volatile type.
2025-07-22 14:13:48 +02:00
Christoffer Lerno
53051e04a3
Add thread::fence (from $$fence builtin). Ref and RefCounted types.
2025-07-22 00:37:41 +02:00
Christoffer Lerno
869bcf8b2b
Removing use of $assignable and deprecate it. Fix regression for stacktraces on MacOS. Added readline_to_stream. Regression: Chaining an optional together with contracts could in some cases lose the optional.
2025-07-21 03:20:40 +02:00
hamkoroke
382a65abcd
Support asm x86 popcnt ( #2314 )
...
* Support asm x86 popcnt
2025-07-21 02:40:17 +02:00
Christoffer Lerno
908d705669
Removing use of $assignable and deprecate it.
2025-07-20 20:07:06 +02:00
Airtz
d422fb699f
More Ed25519 cleanup ( #2315 )
...
* Cleanup Ed25519
2025-07-20 19:57:37 +02:00
Kiana
506e63284b
Tidy up path.c3 ( #2309 )
...
* Tidy up path.c3
2025-07-20 12:26:44 +02:00
Zack Puhl
ed92476916
Add wyhash2 and metro64/128 modern hashing ( #2293 )
...
* add wyhash2, metro64, and metro128 hashes; best performing non-crypto hash functions
* add superfast 64-bit a5hash; not streamed, no 128-bit impl
* add komihash and associated tests/benchmarks
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-20 00:06:10 +02:00
LowByteFox
1218afd51f
Add ability to compile on OpenBSD ( #2310 )
...
* fix curl in cmake, make c3c compile on OpenBSD, fix typo in OS_TYPE_FREEBSD
2025-07-19 21:09:39 +02:00