diff options
| author | Harold Brenes <harold@hbrenes.com> | 2025-04-23 01:41:38 -0400 |
|---|---|---|
| committer | Harold Brenes <harold@hbrenes.com> | 2025-04-23 02:05:51 -0400 |
| commit | 47abea12290647f371b0488a179d3b254c7489a5 (patch) | |
| tree | f6b70b5f780730ecd7739611526d66e97e48eddb /src/checker.hpp | |
| parent | 730c844fc66a9afa6cb8f5ac599cf18c475c7fec (diff) | |
Add support for Objective-C method implementation with Odin calling convention.
Use @objc_context_provider to provide a context for a type.
Diffstat (limited to 'src/checker.hpp')
| -rw-r--r-- | src/checker.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/checker.hpp b/src/checker.hpp index 9910ed17b..574c71c7f 100644 --- a/src/checker.hpp +++ b/src/checker.hpp @@ -152,6 +152,7 @@ struct AttributeContext { Type * objc_type; Type * objc_superclass; Type * objc_ivar; + Entity *objc_context_provider; bool objc_is_class_method : 1; bool objc_is_implementation : 1; // This struct or proc provides a class/method implementation, not a binding to an existing type. @@ -570,6 +571,7 @@ struct Checker { CheckerContext builtin_ctx; MPSCQueue<Entity *> procs_with_deferred_to_check; + MPSCQueue<Entity *> procs_with_objc_context_provider_to_check; Array<ProcInfo *> procs_to_check; BlockingMutex nested_proc_lits_mutex; |