mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00: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, {})
|
b, _ := Block_createInternalWithParam(false, user_data, user_proc, {})
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@(objc_type = Block, objc_name = "invoke")
|
@(objc_type=Block, objc_name="invoke")
|
||||||
Block_invoke :: proc "c" (self: ^Block, args: ..any) -> ^Object {
|
Block_invoke :: proc "c" (self: ^Block, args: ..any) -> ^Object {
|
||||||
return msgSend(^Object, self, "invoke:", ..args)
|
return msgSend(^Object, self, "invoke:", ..args)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,12 +13,12 @@ Data_init :: proc "c" (self: ^Data) -> ^Data {
|
|||||||
return msgSend(^Data, self, "init")
|
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 {
|
Data_initWithBytes :: proc "c" (self: ^Data, bytes: []byte) -> ^Data {
|
||||||
return msgSend(^Data, self, "initWithBytes:length:", raw_data(bytes), len(bytes))
|
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 {
|
Data_initWithBytesNoCopy :: proc "c" (self: ^Data, bytes: []byte, freeWhenDone: ns.BOOL) -> ^Data {
|
||||||
return msgSend(
|
return msgSend(
|
||||||
^Data,
|
^Data,
|
||||||
|
|||||||
Reference in New Issue
Block a user