浏览代码

Add class_getInstanceMethod, method_setImplementation bindings

Jan Ivanecky 2 年之前
父节点
当前提交
141133e326
共有 1 个文件被更改,包括 3 次插入0 次删除
  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) ---
 }