mirror of
https://github.com/tailix/libkernaux.git
synced 2025-10-09 23:24:19 -04:00
Header macro for private struct attributes (#72)
This commit is contained in:
parent
ff436031f5
commit
2de2bd9679
10 changed files with 44 additions and 10 deletions
18
include/kernaux/macro.h
Normal file
18
include/kernaux/macro.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#ifndef KERNAUX_INCLUDED_MACRO
|
||||
#define KERNAUX_INCLUDED_MACRO
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef KERNAUX_PRIVATE_NO
|
||||
#define KERNAUX_PRIVATE_FIELD(id) id
|
||||
#else
|
||||
#define KERNAUX_PRIVATE_FIELD(id) _private_##id
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue