libQuat
Loading...
Searching...
No Matches
libquat_internal.h
Go to the documentation of this file.
1/**
2 * @file
3 * @brief API functions to handle library errors.
4 * @author Krishna Vedala
5 */
6#ifndef _LIBQUAT_INTERNAL_
7#define _LIBQUAT_INTERNAL_
8
9static const char libquat_major_ver =
10 LIBQUAT_MAJOR_VER; /**< Store this internally */
11static const char libquat_minor_ver =
12 LIBQUAT_MINOR_VER; /**< Store this internally */
13
14#ifndef LIBQUAT_DLL_EXPORTED
15#if BUILDING_LIBQUAT && HAVE_VISIBILITY
16#define LIBQUAT_DLL_EXPORTED __attribute__((__visibility__("default")))
17#elif BUILDING_LIBQUAT && defined _MSC_VER
18#define LIBQUAT_DLL_EXPORTED __declspec(dllexport)
19#elif defined _MSC_VER
20#define LIBQUAT_DLL_EXPORTED __declspec(dllimport)
21#else
22#define LIBQUAT_DLL_EXPORTED
23#endif
24#endif
25
26#ifdef __cplusplus
27/**< internal variable to keep a track of version validity */
28extern "C" {
29#endif
30/**< internal variable to keep a track of version validity */
31extern char is_libquat_valid;
32
33// #define err_msg(...) print_err()
34
35// void print_err(const char *fmt, ...);
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif
static const char libquat_major_ver
Definition: libquat_internal.h:9
static const char libquat_minor_ver
Definition: libquat_internal.h:11
char is_libquat_valid
Definition: libquat_err.c:13