mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Change distinct -> typedef.
- Order of attribute declaration is changed for `alias`. - Added `LANGUAGE_DEV_VERSION` env constant. - Rename `anyfault` -> `fault`. - Changed `fault` -> `faultdef`. - Added `attrdef` instead of `alias` for attribute aliases.
This commit is contained in:
committed by
Christoffer Lerno
parent
fc5615a7a1
commit
5c77c9a754
@@ -1,13 +1,13 @@
|
||||
module std::os::macos::objc @if(env::DARWIN) @link(env::DARWIN, "CoreFoundation.framework");
|
||||
|
||||
distinct ObjcClass = void*;
|
||||
distinct ObjcMethod = void*;
|
||||
distinct ObjcIvar = void*;
|
||||
distinct ObjcSelector = void*;
|
||||
typedef ObjcClass = void*;
|
||||
typedef ObjcMethod = void*;
|
||||
typedef ObjcIvar = void*;
|
||||
typedef ObjcSelector = void*;
|
||||
alias ObjcId = void*;
|
||||
alias SendVoid = fn void*(void*, ObjcSelector);
|
||||
|
||||
fault CLASS_NOT_FOUND, UNKNOWN_EVENT;
|
||||
faultdef CLASS_NOT_FOUND, UNKNOWN_EVENT;
|
||||
|
||||
macro ZString ObjcClass.name(ObjcClass cls) => class_getName(cls);
|
||||
macro ObjcClass ObjcClass.superclass(ObjcClass cls) => class_getSuperclass(cls);
|
||||
|
||||
Reference in New Issue
Block a user