/ src / libsmoke /
/src/libsmoke/smoke_util.cpp
1 #if defined _WIN32 || defined __CYGWIN__
2 #define CL_SMOKE_EXPORT __declspec(dllexport)
3 #else
4 #if __GNUC__ >= 4
5 #define CL_SMOKE_EXPORT __attribute__((visibility("default")))
6 #else
7 #define CL_SMOKE_EXPORT
8 #endif
9 #endif
10
11 /** @file
12 * \@brief Utility functions
13 */
14
15 extern "C" {
16
17 /** Gets the size of the C++ bool type in bytes.
18 *
19 * @return the size of bool
20 */
21 CL_SMOKE_EXPORT int
22 cl_smoke_sizeof_bool()
23 {
24 return sizeof(bool);
25 }
26
27 } // extern "C"