Skip to content

Commit a82277a

Browse files
authored
Merge pull request #35 from p-x9/fix/duplicate-symbol-key
Fix 'duplicate symbol `__associated_object_key`' error
2 parents 61685dc + f566d79 commit a82277a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
#include "include/associated_object_key.h"
12

3+
NOINLINE
4+
const void *_associated_object_key() {
5+
return get_return_address();
6+
}

Sources/AssociatedObjectC/include/associated_object_key.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
#define NOINLINE
3232
#endif
3333

34-
NOINLINE
35-
const void *_associated_object_key() {
36-
return get_return_address();
37-
}
34+
const void *_associated_object_key();
3835

3936
#endif /* associated_object_key_h */

0 commit comments

Comments
 (0)