All Manuals > LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual > 2 Objective-C Reference

define-objc-typedef Macro

Summary

Defines a foreign typedef for use with Objective-C.

Package

objc

Signature

define-objc-typedef (name {option}*) &optional type

option ::= (:foreign-name foreign-name) | (:c-type c-type)

Arguments
name
A symbol naming the foreign typedef.
type
An FLI type descriptor or nil.
foreign-name
A string giving the foreign name of the typedef.
c-type
An FLI type descriptor.
Description

The macro define-objc-typedef defines an Objective-C type named name that can be used with define-objc-method, define-objc-class-method or define-objc-struct. It is similar to define-c-typedef.

If c-type is specified then it must be a defined FLI type and is used as the definition of name. Otherwise, an FLI type is also defined for name using define-c-typedef, with the specified foreign-name and type.

Notes

If c-type is specified then type and foreign-name are ignored.

define-objc-typedef was defined in previous versions of LispWorks but was not documented until LispWorks 8.1.

See also

define-objc-method
define-objc-class-method
define-objc-struct


LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 18 Feb 2025 15:39:48