Skip to content

Commit

Permalink
Merge pull request #35 from p-x9/fix/duplicate-symbol-key
Browse files Browse the repository at this point in the history
Fix 'duplicate symbol `__associated_object_key`' error
  • Loading branch information
p-x9 committed Feb 26, 2024
2 parents 61685dc + f566d79 commit a82277a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Sources/AssociatedObjectC/associated_object_key.c
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
#include "include/associated_object_key.h"

NOINLINE
const void *_associated_object_key() {
return get_return_address();
}
5 changes: 1 addition & 4 deletions Sources/AssociatedObjectC/include/associated_object_key.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
#define NOINLINE
#endif

NOINLINE
const void *_associated_object_key() {
return get_return_address();
}
const void *_associated_object_key();

#endif /* associated_object_key_h */

0 comments on commit a82277a

Please sign in to comment.