mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add NSApplicationTerminateReply and registerClassPair to objc stdlib
The missing registerClassPair function is required to register a class and make it active with objc after allocating with the existing allocateClassPair function.
This commit is contained in:
@@ -186,3 +186,14 @@ fn void test_event_mask_64bit_values()
|
||||
|
||||
assert(NSEventMask.sizeof == ulong.sizeof);
|
||||
}
|
||||
|
||||
fn void test_application_terminate_reply()
|
||||
{
|
||||
NSApplicationTerminateReply cancel = NSApplicationTerminateReply.CANCEL;
|
||||
NSApplicationTerminateReply now = NSApplicationTerminateReply.NOW;
|
||||
NSApplicationTerminateReply later = NSApplicationTerminateReply.LATER;
|
||||
|
||||
assert(cancel == 0);
|
||||
assert(now == 1);
|
||||
assert(later == 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user