Browse Source

Add class_getInstanceMethod, method_setImplementation bindings

Jan Ivanecky 2 years ago
parent
commit
141133e326
1 changed files with 3 additions and 0 deletions
  1. 3 0
      vendor/darwin/Foundation/objc.odin

+ 3 - 0
vendor/darwin/Foundation/objc.odin

@@ -13,6 +13,9 @@ foreign Foundation {
 	objc_allocateClassPair :: proc "c" (superclass: Class, name: cstring, extraBytes: uint) ---
 
 	class_addMethod :: proc "c" (cls: Class, name: SEL, imp: IMP, types: cstring) -> BOOL ---
+	class_getInstanceMethod :: proc "c" (cls: Class, name: SEL) -> Method ---
+
+	method_setImplementation :: proc "c" (method: Method, imp: IMP) ---
 }