Files
metadesk/source/base/linkage.h
T

50 lines
926 B
C

#ifdef INTELLISENSE_DIRECTIVES
# pragma once
# include "context_cracking.h"
#endif
#ifndef MD_API
#if COMPILER_MSVC
# if BUILD_DYANMIC
# if BUILD_API_EXPORT
# define MD_API __declspec(dllexport)
# else
# define MD_API __declspec(dllimport)
# endif
# else
# define MD_API // Empty for static builds
# endif
#else
# ifdef BUILD_DYANMIC
# define MD_API __attribute__((visibility("default")))
# else
# define MD_API // Empty for static builds
# endif
#endif
#endif // GEN_API
#ifndef MD_API_C_BEGIN
# if LANG_C
# define MD_API_C_BEGIN
# define MD_API_C_END
# define MD_API_C
# else
# define MD_API_C_BEGIN extern "C" {
# define MD_API_C_END }
# define MD_API_C_END extern "C"
# endif
#endif
#ifndef global // Global variables
# if BUILD_API_EXPORT || BUILD_STATIC
# define global
# else
# define global static
# endif
#endif
// Internal Linkage
#ifndef internal
#define internal static
#endif