commit ae1d069c597d057b7b8d706fa0707728929c2d62
parent 3a8b96ef1ea2e5a8326e2a55b68383b7ab1a6713
Author: Erik Agsjö <erik.agsjo@gmail.com>
Date: Fri, 3 Dec 2021 14:54:59 +0100
Another link
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/naett_objc.h b/src/naett_objc.h
@@ -39,7 +39,9 @@
#define makeClass(NAME, SUPER) \
objc_allocateClassPair((Class)objc_getClass(SUPER), NAME, 0)
-// Check here to get the signature right: https://nshipster.com/type-encodings/
+// Check here to get the signature right:
+// https://nshipster.com/type-encodings/
+// https://ko9.org/posts/encode-types/
#define addMethod(CLASS, NAME, IMPL, SIGNATURE) \
if (!class_addMethod(CLASS, sel(NAME), (IMP) (IMPL), (SIGNATURE))) assert(false)