mirror of
https://github.com/tailix/libkernaux.git
synced 2024-10-30 11:54:01 -04:00
25 lines
502 B
C
25 lines
502 B
C
#ifndef KERNAUX_INCLUDED_MACRO
|
|
#define KERNAUX_INCLUDED_MACRO
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef KERNAUX_ACCESS_PRIVATE
|
|
# define KERNAUX_PRIVATE_FIELD(id) id
|
|
# define KERNAUX_PROTECTED_FIELD(id) id
|
|
#else
|
|
# define KERNAUX_PRIVATE_FIELD(id) _private_##id
|
|
|
|
# ifdef KERNAUX_ACCESS_PROTECTED
|
|
# define KERNAUX_PROTECTED_FIELD(id) id
|
|
# else
|
|
# define KERNAUX_PROTECTED_FIELD(id) _protected_##id
|
|
# endif
|
|
#endif // KERNAUX_ACCESS_PRIVATE
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|