Changeset 12174


Ignore:
Timestamp:
Jun 1, 2009, 7:54:42 AM (10 years ago)
Author:
gb
Message:

Export *OBJC-DESCRIPTION-MAX-LENGTH*, default it to 1024 (truncate
NSObject #/descriptions that're longer than this if it's set.
Don't call #/description on ObjC instances that look like they haven't
been initialized yet (things that have at least 1 non-zero byte are
assumed to have been through initialization.) Can still fail (if
an error occurs halfway through initialization and we try to print
the object), but less likely.

File:
1 edited

Legend:

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

    r12056 r12174  
    4444           "OBJC-MESSAGE-SEND" "OBJC-MESSAGE-SEND-STRET"
    4545           "OBJC-MESSAGE-SEND-SUPER" "OBJC-MESSAGE-SEND-SUPER-STRET"
    46            "LOAD-FRAMEWORK"))
     46           "LOAD-FRAMEWORK" "*OBJC-DESCRIPTION-MAX-LENGTH*"
     47           ))
    4748
    4849
     
    5455            objc:objc-message-send objc:objc-message-send-stret
    5556            objc:objc-message-send-super objc:objc-message-send-super-stret
    56             )
     57            objc:*objc-description-max-length*)
    5758          "CCL"))
    5859
Note: See TracChangeset for help on using the changeset viewer.