Commit Graph

14433 Commits

Author SHA1 Message Date
Harold Brenes 6d18560ca3 Move unconditionally exporting Objective-C methods to the right location 2025-05-03 03:09:31 -04:00
Harold Brenes cf3830a6a8 Fix checker errors. 2025-05-03 03:09:31 -04:00
Harold Brenes 33d37c72f9 Register all classes unconditionally 2025-05-03 03:09:31 -04:00
Harold Brenes a00b91577d Prevent multiple uses of the same Objective-C class name 2025-05-03 03:09:30 -04:00
Harold Brenes 5f0b47c373 Implement all checker specification for Objective-C class implementations and objc_ivar_get intrinsic 2025-05-03 00:59:33 -04:00
Harold Brenes 0746127654 Minor fixes in data type usage and style. 2025-04-30 22:16:53 -04:00
Harold Brenes 1505edef01 Change ivar offsets from u32 to (odin base type) int/native pointer size. 2025-04-30 22:09:33 -04:00
Harold Brenes dc8692b504 Use correct alignment value for class_addIvar. 2025-04-30 21:52:29 -04:00
Harold Brenes 998ed79738 Go back to objc_ivar_get instead of ivar_get. 2025-04-30 20:43:05 -04:00
Harold Brenes c2dfc4b749 Cleanup ivar generation for selector expressions.
Cleanup ObjC superclass resolution.
2025-04-30 20:32:34 -04:00
Harold Brenes abfbb2f9ed Use basic name instead of raw_name for type encoding complex and quats. 2025-04-30 20:32:28 -04:00
Harold Brenes 668a9a89b0 Complete lb_get_objc_type_encoding() implementation 2025-04-30 20:32:14 -04:00
Harold Brenes 5097e98da2 Better Objective-C object superclass cycle check 2025-04-30 20:32:05 -04:00
Harold Brenes 2dc5653fd1 Name fixes 2025-04-30 20:31:54 -04:00
Harold Brenes 89533f49e4 Fix more styling and minor issues 2025-04-27 23:05:17 -04:00
Harold Brenes f3923ed666 Fix indentations
Fix Objective-C wrapper procs not forwarding return value
2025-04-27 22:55:53 -04:00
Harold Brenes 6c9c239a5e Fix styling issues 2025-04-27 22:55:53 -04:00
Harold Brenes 974a197ce1 Allow the class's ivar to be used as a context provider receiver as well. 2025-04-23 02:06:01 -04:00
Harold Brenes 47abea1229 Add support for Objective-C method implementation with Odin calling convention.
Use @objc_context_provider to provide a context for a type.
2025-04-23 02:05:51 -04:00
Harold Brenes 730c844fc6 Fix bug in @encode implementation. 2025-04-23 02:05:43 -04:00
Harold Brenes 53adff38f0 Fixes to Ivar pseudo fields. 2025-04-23 02:05:33 -04:00
Harold Brenes bca02f81cd Include the ivar in the Objective-C class unconditionally of it being used or not.
Allow pseudo-fields for ivar access.
2025-04-22 19:18:53 -04:00
Harold Brenes b3b4d501ca Fix ivar in multi-module mode. 2025-04-21 02:43:16 -04:00
Harold Brenes a3de9c8de4 Add initial support for Objective-C class implementation 2025-04-20 21:53:46 -04:00
Laytan 2dedb199b8 Merge pull request #5052 from harold-b/hb/fix-ns-dictionary-selectors
Fix 2 selectors in NSDictionary
2025-04-17 21:28:10 +02:00
Harold Brenes 040d8b1d48 Fix 2 selectors in NSDictionary 2025-04-17 15:22:10 -04:00
Jeroen van Rijn 07c59cb4db Early out and propagate nil in create*
If allocation of a `^Thread` failed, `create*` now properly return `nil`,
so you can assert on that instead of calling `thread.destroy` on a null pointer, say.
2025-04-17 17:26:24 +02:00
Jeroen van Rijn 1c655b84e4 Fix #5049
Keep in mind that `thread.create` needs an allocator to be set, as it returns `^Thread`.
2025-04-17 16:53:07 +02:00
Jeroen van Rijn 8985d3beb3 Merge pull request #5050 from Kelimion/pq-err
Let `core:container/priority_queue` return `runtime.Allocator_Error`
2025-04-17 14:35:04 +02:00
Jeroen van Rijn 5a39013339 Let core:container/priority_queue return runtime.Allocator_Error
`init`, `reserve` and `push` now return `runtime.Allocator_Error`.
2025-04-17 14:20:03 +02:00
Laytan 09c8477bd3 Merge pull request #5041 from mtarik34b/remove-redundant-code-in-string-justify
Remove redundant `builder_init()` calls from `strings.left_justify()` and `strings.right_justify()`
2025-04-17 00:01:59 +02:00
Jeroen van Rijn 81274a7d67 Merge pull request #5045 from laytan/fix-not-resolving-to-alias-in-a-recursive-declaration
fix not resolving to alias in a recursive declaration
2025-04-16 23:07:01 +02:00
Laytan 8efeaef40b fix not resolving to alias in a recursive declaration 2025-04-16 22:55:25 +02:00
Jeroen van Rijn 3ba9b9b14e Merge pull request #5044 from Barinzaya/box2d-missing-allowfastrotation
Add missing field in box2d.BodyDef
2025-04-16 21:56:22 +02:00
Barinzaya 744587e082 Added missing allowFastRotation field to box2d.BodyDef. 2025-04-16 15:49:36 -04:00
gingerBill 4ec03a2d9b Fix strconv.parse_float related procedures caused by a shifting problem 2025-04-16 13:45:50 +01:00
mtarik34b f4212b60e7 Remove redundant calls to builder_init 2025-04-16 13:16:51 +02:00
gingerBill 3dcc22fa6d Change hashing rules for float-like types to make 0 == -0 2025-04-16 10:52:35 +01:00
Laytan 990cc56974 sdl3: fix not allowing nil for SetWindowMouseRect 2025-04-15 20:13:51 +02:00
Jeroen van Rijn 678fa897f5 signbit -> sign_bit in tests/core/math 2025-04-15 16:20:49 +02:00
Jeroen van Rijn ddedddc16d Get rid of duplicate math.signbit in favor of math.sign_bit 2025-04-15 16:17:02 +02:00
gingerBill 6045955c88 More improvements doc writer name canonicalization 2025-04-15 12:35:20 +01:00
gingerBill b2ca76a76a Improve name canonicalization rules for the doc writer 2025-04-15 12:07:58 +01:00
gingerBill cfb8cc709c Merge branch 'master' of https://github.com/odin-lang/Odin 2025-04-15 11:51:05 +01:00
gingerBill 39363c4018 Improve name canonization rules for doc writer 2025-04-15 11:50:59 +01:00
Jeroen van Rijn 2d5b85f9f9 Merge pull request #5038 from mtarik34b/noteq-comparison-for-nan-must-be-true
Ensure `NaN != any_float_value` evaluates to true for constant NaN values
2025-04-15 12:29:17 +02:00
gingerBill 753c3fa0a7 Merge branch 'master' of https://github.com/odin-lang/Odin 2025-04-15 11:26:48 +01:00
gingerBill 2d4cb79baa Fix SysV ABI bug 2025-04-15 11:26:41 +01:00
mtarik34b 1d2adbb3c6 Remove reference to git issue 2025-04-15 05:26:36 +02:00
mtarik34b 313d7d84bc Ensure NaN != any_float_value evaluates to true for constant NaN values 2025-04-15 05:00:36 +02:00