doctest

FORK: The fastest feature-rich C++11/14/17/20 single-header testing framework
git clone https://git.neptards.moe/neptards/doctest.git
Log | Files | Refs | README

exporting.h (318B)


      1 #pragma once
      2 
      3 #ifdef _EXPORT
      4 #ifdef _MSC_VER
      5 #define DLL_API __declspec(dllexport)
      6 #elif defined __GNUC__
      7 #define DLL_API __attribute__((visibility("default")))
      8 #endif
      9 #else
     10 #ifdef _MSC_VER
     11 #define DLL_API __declspec(dllimport)
     12 #elif defined __GNUC__
     13 #define DLL_API __attribute__((visibility("hidden")))
     14 #endif
     15 #endif