comparison gcc/doc/objc.texi @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 @c Copyright (C) 1988-2018 Free Software Foundation, Inc. 1 @c Copyright (C) 1988-2020 Free Software Foundation, Inc.
2 @c This is part of the GCC manual. 2 @c This is part of the GCC manual.
3 @c For copying conditions, see the file gcc.texi. 3 @c For copying conditions, see the file gcc.texi.
4 4
5 @node Objective-C 5 @node Objective-C
6 @comment node-name, next, previous, up 6 @comment node-name, next, previous, up
1163 in dynamically registering the method. 1163 in dynamically registering the method.
1164 1164
1165 To configure the hook, you set the global variable 1165 To configure the hook, you set the global variable
1166 @code{__objc_msg_forward2} to a function with the same argument and 1166 @code{__objc_msg_forward2} to a function with the same argument and
1167 return types of @code{objc_msg_lookup()}. When 1167 return types of @code{objc_msg_lookup()}. When
1168 @code{objc_msg_lookup()} can not find a method implementation, it 1168 @code{objc_msg_lookup()} cannot find a method implementation, it
1169 invokes the hook function you provided to get a method implementation 1169 invokes the hook function you provided to get a method implementation
1170 to return. So, in practice @code{__objc_msg_forward2} allows you to 1170 to return. So, in practice @code{__objc_msg_forward2} allows you to
1171 extend @code{objc_msg_lookup()} by adding some custom code that is 1171 extend @code{objc_msg_lookup()} by adding some custom code that is
1172 called to do a further lookup when no standard method implementation 1172 called to do a further lookup when no standard method implementation
1173 can be found using the normal lookup. 1173 can be found using the normal lookup.