-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmessage.h
More file actions
27 lines (23 loc) · 754 Bytes
/
message.h
File metadata and controls
27 lines (23 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef OBJC_MESSAGE_H
#define OBJC_MESSAGE_H
/*
* The run-time in a few cases sends a direct ARR
* messages to objects that do not support ARC,
* i.e. those that implement their own ARR methods.
*/
static inline void objc_send_release_msg(id receiver){
objc_msgSend(receiver, objc_release_selector);
}
static inline id objc_send_retain_msg(id receiver){
return objc_msgSend(receiver, objc_retain_selector);
}
static inline void objc_send_dealloc_msg(id receiver){
objc_msgSend(receiver, objc_dealloc_selector);
}
static inline id objc_send_autorelease_msg(id receiver){
return objc_msgSend(receiver, objc_autorelease_selector);
}
static inline id objc_send_copy_msg(id receiver){
return objc_msgSend(receiver, objc_copy_selector);
}
#endif