Browse Source

Add class_getInstanceMethod, method_setImplementation bindings

Jan Ivanecky 2 năm trước cách đây
mục cha
commit
141133e326
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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) ---
 }