Face Engine SDK  5.23.1
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Def.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #if defined(__clang__) || defined(__GNUC__)
10 #define FSDK_DEPRECATED(msg) __attribute__((__deprecated__(msg)))
11 #elif defined(_MSC_VER)
12 #define FSDK_DEPRECATED(msg) __declspec(deprecated(msg))
13 #else
14 #define FSDK_DEPRECATED(msg)
15 #endif
16 
17 #if defined(WIN32) || defined(_WIN32)
18 #if defined(SDK_DLL_EXPORTS)
19 #define FSDK_API __declspec(dllexport)
20 #else
21 #define FSDK_API __declspec(dllimport)
22 #endif
23 #else
24 #if __GNUC__ >= 4
25 #define FSDK_API __attribute__((visibility("default")))
26 #else
27 #define FSDK_API
28 #endif
29 #endif
30 
31 #if __APPLE__
32 #include <TargetConditionals.h>
33 #if TARGET_CPU_ARM || TARGET_CPU_ARM64
34 #define IOS
35 #endif
36 #endif // __APPLE__
37 
42 // Aling value up to align so that value % align == 0.
43 #define ALIGN_UP(value, align) (((value) & (align - 1)) ? (((value) + (align - 1)) & ~(align - 1)) : (value))
44 
45 #if defined(_MSC_VER)
46 #define ALIGNED(x) __declspec(align(x))
47 #define RESTRICT __restrict
48 #define FORCE_INLINE __forceinline
49 #else
50 #define ALIGNED(x) __attribute__((aligned(x)))
51 #define RESTRICT __restrict__
52 #define FORCE_INLINE inline __attribute__((always_inline))
53 #endif
54 
56 #define DECLARE_SMARTPTR(X) \
57  struct X; \
58  using X##Ptr = fsdk::Ref<X>
59 
61 #define STRINGIFY2(x) #x
62 
64 #define STRINGIFY(x) STRINGIFY2(x)
65  // end of CoreGroup