1
0
Fork 0
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:
Alex Kotov 2022-06-20 18:19:15 +03:00 committed by GitHub
parent ff436031f5
commit 2de2bd9679
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 44 additions and 10 deletions

18
include/kernaux/macro.h Normal file
View 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