Changeset 12372


Ignore:
Timestamp:
Jul 8, 2009, 6:21:13 PM (10 years ago)
Author:
rme
Message:

The NSHandler2 type isn't visible in Leopard headers, so define and use
a private foreign type for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/objc-bridge/objc-runtime.lisp

    r11905 r12372  
    30343034  `(progn ,@body))
    30353035
     3036;;; The NSHandler2 type was visible in Tiger headers, but it's not
     3037;;; in the Leopard headers.
     3038#-apple-objc-2.0
     3039(def-foreign-type #>NSHandler2_private
     3040  (:struct #>NSHandler2_private
     3041    (:_state :jmp_buf)
     3042    (:_exception :address)
     3043    (:_others :address)
     3044    (:_thread :address)
     3045    (:_reserved1 :address)))
     3046
    30363047#-apple-objc-2.0
    30373048(defmacro with-ns-exceptions-as-errors (&body body)
     
    30393050  (let* ((nshandler (gensym))
    30403051         (cframe (gensym)))
    3041     `(rletZ ((,nshandler :<NSH>andler2))
     3052    `(rletZ ((,nshandler #>NSHandler2_private))
    30423053      (unwind-protect
    30433054           (progn
Note: See TracChangeset for help on using the changeset viewer.