csnip  0.1
cext.h
Go to the documentation of this file.
1 #ifndef CSNIP_CEXT_H
2 #define CSNIP_CEXT_H
3 
25 #if defined(__GNUC__) || defined(__clang__)
26 #define csnip_cext_unused __attribute__((__unused__))
27 #else
28 #define csnip_cext_unused
29 #endif
30 
38 #if defined(__GNUC__) || defined(__clang__)
39 #define csnip_cext_export __attribute__ ((visibility ("default")))
40 #endif
41 
43 #if defined(__GNUC__) || defined(__clang__)
44 #define csnip_cext_import
45 #endif
46 
49 #endif /* CSNIP_CEXT_H */
50 
51 #if defined(CSNIP_SHORT_NAMES) && !defined(CSNIP_CEXT_HAVE_SHORT_NAMES)
52 #define cext_unused csnip_cext_unused
53 #define cext_export csnip_cext_export
54 #define cext_import csnip_cext_import
55 #define CSNIP_CEXT_HAVE_SHORT_NAMES
56 #endif /* CSNIP_SHORT_NAMES && !CSNIP_CEXT_HAVE_SHORT_NAMES */