44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
|
|
#ifndef CODEGEN_BASE_EXPORT_H
|
|
#define CODEGEN_BASE_EXPORT_H
|
|
|
|
#ifdef CODEGEN_BASE_STATIC_DEFINE
|
|
# define CODEGEN_BASE_EXPORT
|
|
# define CODEGEN_BASE_NO_EXPORT
|
|
#else
|
|
# ifndef CODEGEN_BASE_EXPORT
|
|
# ifdef codegen_base_EXPORTS
|
|
/* We are building this library */
|
|
# define CODEGEN_BASE_EXPORT __attribute__((visibility("default")))
|
|
# else
|
|
/* We are using this library */
|
|
# define CODEGEN_BASE_EXPORT __attribute__((visibility("default")))
|
|
# endif
|
|
# endif
|
|
|
|
# ifndef CODEGEN_BASE_NO_EXPORT
|
|
# define CODEGEN_BASE_NO_EXPORT __attribute__((visibility("hidden")))
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef CODEGEN_BASE_DEPRECATED
|
|
# define CODEGEN_BASE_DEPRECATED __attribute__ ((__deprecated__))
|
|
#endif
|
|
|
|
#ifndef CODEGEN_BASE_DEPRECATED_EXPORT
|
|
# define CODEGEN_BASE_DEPRECATED_EXPORT CODEGEN_BASE_EXPORT CODEGEN_BASE_DEPRECATED
|
|
#endif
|
|
|
|
#ifndef CODEGEN_BASE_DEPRECATED_NO_EXPORT
|
|
# define CODEGEN_BASE_DEPRECATED_NO_EXPORT CODEGEN_BASE_NO_EXPORT CODEGEN_BASE_DEPRECATED
|
|
#endif
|
|
|
|
/* NOLINTNEXTLINE(readability-avoid-unconditional-preprocessor-if) */
|
|
#if 0 /* DEFINE_NO_DEPRECATED */
|
|
# ifndef CODEGEN_BASE_NO_DEPRECATED
|
|
# define CODEGEN_BASE_NO_DEPRECATED
|
|
# endif
|
|
#endif
|
|
|
|
#endif /* CODEGEN_BASE_EXPORT_H */
|