Changeset 230
- Timestamp:
- Jan 5, 2004, 9:19:43 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/ccl/examples/objc-runtime.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/examples/objc-runtime.lisp
r185 r230 142 142 (splay-tree-count objc-metaclass-map) 0 143 143 next-objc-class-id 0))) 144 (defun map-objc-class (class &optional (class-name 145 (objc-to-lisp-classname 146 (%get-cstring 147 (pref class :objc_class.name)) 148 "NS") 149 class-name-p)) 144 (defun map-objc-class (class &optional (name nil name-p)) 150 145 "ensure that the class (and metaclass) are mapped to a small integer" 151 146 (with-lock-grabbed (objc-class-lock) 152 (labels ((ensure-mapped-class (class) 147 (labels ((ensure-mapped-class (class &optional 148 (class-name 149 (objc-to-lisp-classname 150 (%get-cstring 151 (pref class :objc_class.name)) 152 "NS") 153 class-name-p)) 153 154 (ensure-objc-classptr-resolved class) 154 155 (with-macptrs ((super (pref class :objc_class.super_class))) … … 186 187 ) 187 188 id)))) 188 (ensure-mapped-class class)))) 189 (if name-p 190 (ensure-mapped-class class name) 191 (ensure-mapped-class class))))) 189 192 (defun objc-class-id (class) 190 193 (with-lock-grabbed (objc-class-lock)
Note:
See TracChangeset
for help on using the changeset viewer.
