source:
GPL/trunk/include/linux/cleanup.h
Last change on this file was 777, checked in by , 4 months ago | |
---|---|
File size: 374 bytes |
Line | |
---|---|
1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef _LINUX_CLEANUP_H |
3 | #define _LINUX_CLEANUP_H |
4 | |
5 | #define CLASS(_name, var) \ |
6 | class_##_name##_t var __cleanup(class_##_name##_destructor) = \ |
7 | class_##_name##_constructor |
8 | |
9 | #define guard(_name) \ |
10 | CLASS(_name, __UNIQUE_ID(guard)) |
11 | |
12 | #define __guard_ptr(_name) class_##_name##_lock_ptr |
13 | |
14 | #endif /* _LINUX_CLEANUP_H */ |
Note:
See TracBrowser
for help on using the repository browser.