mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-25 15:05:00 -07:00
updated to meet formatting style
This commit is contained in:
@@ -25,7 +25,7 @@ Block_createLocalWithParam :: proc (user_data: rawptr, user_proc: proc "c" (user
|
||||
b, _ := Block_createInternalWithParam(false, user_data, user_proc, {})
|
||||
return b
|
||||
}
|
||||
@(objc_type = Block, objc_name = "invoke")
|
||||
@(objc_type=Block, objc_name="invoke")
|
||||
Block_invoke :: proc "c" (self: ^Block, args: ..any) -> ^Object {
|
||||
return msgSend(^Object, self, "invoke:", ..args)
|
||||
}
|
||||
|
||||
@@ -13,12 +13,12 @@ Data_init :: proc "c" (self: ^Data) -> ^Data {
|
||||
return msgSend(^Data, self, "init")
|
||||
}
|
||||
|
||||
@(objc_type = Data, objc_name = "initWithBytes")
|
||||
@(objc_type=Data, objc_name="initWithBytes")
|
||||
Data_initWithBytes :: proc "c" (self: ^Data, bytes: []byte) -> ^Data {
|
||||
return msgSend(^Data, self, "initWithBytes:length:", raw_data(bytes), len(bytes))
|
||||
}
|
||||
|
||||
@(objc_type = Data, objc_name = "initWithBytesNoCopy")
|
||||
@(objc_type=Data, objc_name="initWithBytesNoCopy")
|
||||
Data_initWithBytesNoCopy :: proc "c" (self: ^Data, bytes: []byte, freeWhenDone: ns.BOOL) -> ^Data {
|
||||
return msgSend(
|
||||
^Data,
|
||||
|
||||
Reference in New Issue
Block a user