SqueezeBrains SDK 1.18
common.h
Go to the documentation of this file.
1
5#ifndef INCLUDE_COMMON_H_
6#define INCLUDE_COMMON_H_
7
8#ifdef _WIN32
9# include <windows.h>
10#elif __linux__
11# include <unistd.h>
12#endif
13#include <stdio.h>
14#include <stdlib.h>
15#include <string.h>
16#include <math.h>
17#include "../lib/sb.h"
18#ifdef _WIN32
19# ifndef QT_CREATOR
20# ifdef _WIN64
21# pragma comment(lib, "../lib/win_x64/sb.lib")
22# else
23# pragma comment(lib, "../lib/win_x86/sb.lib")
24# endif
25# endif
26# pragma warning(disable : 4996)
27#endif
28
29
34#define CHECK_FN_GOTO(function) \
35{ sb_t_err __err; \
36 __err = function; \
37 if (__err) { \
38 printf(#function " failed, err=%d - %s\n", __err, sb_err_format(__err)); \
39 err = __err; \
40 goto FnExit; \
41 } \
42}
43
44#ifdef __cplusplus
45# define EXTERN_C extern "C"
46#else
47# define EXTERN_C extern
48#endif
49
50EXTERN_C sb_t_err wait_license(void);
51#endif
EXTERN_C sb_t_err wait_license(void)
The functions wait until the license status is active.
Definition: common.c:11
sb_t_err
Errors code enum.
Definition: sb.h:6230