cocoa.messages: simplify (objc-class).

char-rename
John Benediktsson 2017-02-11 20:58:25 -08:00
parent 52932cf2e1
commit e826546c6d
1 changed files with 6 additions and 6 deletions

View File

@ -94,12 +94,12 @@ SYMBOL: class-init-hooks
class-init-hooks [ H{ } clone ] initialize
: (objc-class) ( name word -- class )
2dup execute dup [ 2nip ] [
drop over class-init-hooks get at [ call( -- ) ] when*
2dup execute dup [ 2nip ] [
2drop "No such class: " prepend throw
] if
] if ; inline
2dup execute [ 2nip ] [
over class-init-hooks get at [ call( -- ) ] when*
2dup execute [ 2nip ] [
drop "No such class: " prepend throw
] if*
] if* ; inline
: objc-class ( string -- class )
\ objc_getClass (objc-class) ;