Face Engine SDK  5.25.0
A face detection, recognition and tracking engine.
include/fsdk/Def.h
Go to the documentation of this file.
00001 
00007 #pragma once
00008 
00009 #if defined(__clang__) || defined(__GNUC__)
00010 #define FSDK_DEPRECATED(msg) __attribute__((__deprecated__(msg)))
00011 #elif defined(_MSC_VER)
00012 #define FSDK_DEPRECATED(msg) __declspec(deprecated(msg))
00013 #else
00014 #define FSDK_DEPRECATED(msg)
00015 #endif
00016 
00017 #if defined(WIN32) || defined(_WIN32)
00018 #if defined(SDK_DLL_EXPORTS)
00019 #define FSDK_API __declspec(dllexport) //!< DLL export specifier.
00020 #else
00021 #define FSDK_API __declspec(dllimport) //!< DLL import specifier.
00022 #endif
00023 #else
00024 #if __GNUC__ >= 4
00025 #define FSDK_API __attribute__((visibility("default")))
00026 #else
00027 #define FSDK_API //!< Dummy.
00028 #endif
00029 #endif
00030 
00031 #if __APPLE__
00032 #include <TargetConditionals.h>
00033 #if TARGET_CPU_ARM || TARGET_CPU_ARM64
00034 #define IOS
00035 #endif
00036 #endif // __APPLE__
00037 
00042 // Aling value up to align so that value % align == 0.
00043 #define ALIGN_UP(value, align) (((value) & (align - 1)) ? (((value) + (align - 1)) & ~(align - 1)) : (value))
00044 
00045 #if defined(_MSC_VER)
00046 #define ALIGNED(x) __declspec(align(x))
00047 #define RESTRICT __restrict
00048 #define FORCE_INLINE __forceinline
00049 #else
00050 #define ALIGNED(x) __attribute__((aligned(x)))
00051 #define RESTRICT __restrict__
00052 #define FORCE_INLINE inline __attribute__((always_inline))
00053 #endif
00054 
00056 #define DECLARE_SMARTPTR(X)                                                                                  \
00057     struct X;                                                                                                  \
00058     using X##Ptr = fsdk::Ref<X>
00059 
00061 #define STRINGIFY2(x) #x
00062 
00064 #define STRINGIFY(x) STRINGIFY2(x)
00065  // end of CoreGroup
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines