Skip to content

src/platform.h

Namespaces

Name
dakku
dakku namespace

Defines

Name
DAKKU_INLINE
DAKKU_EXPORT
DAKKU_IMPORT
DAKKU_CORE_MODULE
dakku core module
DAKKU_FILTERS_MODULE
dakku filters module
DAKKU_MAIN_MODULE
dakku main module

Macros Documentation

define DAKKU_INLINE

#define DAKKU_INLINE __attribute__((always_inline)) inline

define DAKKU_EXPORT

#define DAKKU_EXPORT __attribute__((visibility("default")))

define DAKKU_IMPORT

#define DAKKU_IMPORT 

define DAKKU_CORE_MODULE

#define DAKKU_CORE_MODULE 1

dakku core module

define DAKKU_FILTERS_MODULE

#define DAKKU_FILTERS_MODULE 2

dakku filters module

define DAKKU_MAIN_MODULE

#define DAKKU_MAIN_MODULE 10

dakku main module

Source code

#ifndef DAKKU_PLATFORM_H_
#define DAKKU_PLATFORM_H_
#if defined(_MSC_VER)
#if !defined(_USE_MATH_DEFINES) && !defined(M_PI)
#define _USE_MATH_DEFINES
#endif
#endif

namespace dakku {

#if defined(_MSC_VER)
#define DAKKU_INLINE __forceinline
#define DAKKU_EXPORT __declspec(dllexport)
#define DAKKU_IMPORT __declspec(dllimport)
#else
#define DAKKU_INLINE __attribute__((always_inline)) inline
#define DAKKU_EXPORT __attribute__((visibility("default")))
#define DAKKU_IMPORT
#endif

#define DAKKU_CORE_MODULE 1
#define DAKKU_FILTERS_MODULE 2
#define DAKKU_MAIN_MODULE 10

#if defined(_MSC_VER)
#pragma warning(disable : 4251)
#endif

}  // namespace dakku

#endif

Updated on 2022-04-30 at 15:46:11 +0000