mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-07 02:54:18 +00:00
Use NS.BOOL instead of bool
This commit is contained in:
4
vendor/darwin/Foundation/NSApplication.odin
vendored
4
vendor/darwin/Foundation/NSApplication.odin
vendored
@@ -11,7 +11,7 @@ ActivationPolicy :: enum UInteger {
|
||||
ApplicationDelegate :: struct {
|
||||
willFinishLaunching: proc "c" (self: ^ApplicationDelegate, notification: ^Notification),
|
||||
didFinishLaunching: proc "c" (self: ^ApplicationDelegate, notification: ^Notification),
|
||||
shouldTerminateAfterLastWindowClosed: proc "c" (self: ^ApplicationDelegate, sender: ^Application) -> bool,
|
||||
shouldTerminateAfterLastWindowClosed: proc "c" (self: ^ApplicationDelegate, sender: ^Application) -> BOOL,
|
||||
|
||||
user_data: rawptr,
|
||||
}
|
||||
@@ -34,7 +34,7 @@ Application_setDelegate :: proc(self: ^Application, delegate: ^ApplicationDelega
|
||||
del := (^ApplicationDelegate)(self->pointerValue())
|
||||
del->didFinishLaunching(notification)
|
||||
}
|
||||
shouldTerminateAfterLastWindowClosed :: proc "c" (self: ^Value, _: SEL, application: ^Application) -> bool {
|
||||
shouldTerminateAfterLastWindowClosed :: proc "c" (self: ^Value, _: SEL, application: ^Application) -> BOOL {
|
||||
del := (^ApplicationDelegate)(self->pointerValue())
|
||||
return del->shouldTerminateAfterLastWindowClosed(application)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user