libclap 1.0.0
Command Line Argument Parser for C
Loading...
Searching...
No Matches
Macros
clap_export.h File Reference

Symbol export/import macros for libclap. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CLAP_EXPORT
 
#define CLAP_DEPRECATED(msg)
 

Detailed Description

Symbol export/import macros for libclap.

Following the same approach as curl's CURL_EXTERN:

Note
If you link libclap statically, you must define CLAP_STATIC before including any libclap header (e.g. -DCLAP_STATIC or #define CLAP_STATIC). When using CMake, pass -DCLAP_STATIC via target_compile_definitions or add it to your project's compile flags. This is required on all platforms, but most important on Windows where the absence of CLAP_STATIC would cause the compiler to emit __declspec(dllimport) decorations that are incompatible with a static library.

Macro Definition Documentation

◆ CLAP_DEPRECATED

#define CLAP_DEPRECATED (   msg)

◆ CLAP_EXPORT

#define CLAP_EXPORT