datatypes/setup_exports.h¶
Defines¶
Name | |
---|---|
USING_MOIRAI | |
define |
Macros Documentation¶
define USING_MOIRAI¶
define define¶
Source code¶
#pragma once
#define USING_MOIRAI
#include "moirai/setup_modifiers.h"
// Defining the macro following guidelines in e.g. https://msdn.microsoft.com/en-us/library/8fskxacy.aspx
// The declaration modifiers can be overriden by the user by defining DATATYPES_DLL_LIB_MODIFIERS
#ifndef DATATYPES_DLL_LIB_MODIFIERS
#ifdef _WIN32
#ifdef USING_DATATYPES
#define DATATYPES_DLL_LIB __declspec(dllimport)
#define TEMPLATE_SPECIALIZATION_EXTERN extern
#else
#define DATATYPES_DLL_LIB __declspec(dllexport)
#define TEMPLATE_SPECIALIZATION_EXTERN
// TO prevent warnings such as:
// Warning C4251 'datatypes::io::IoHelper::DefaultFilePattern' : class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll - interface to be used by clients of class 'datatypes::io::IoHelper'
#pragma warning (disable : 4251)
#endif
#else
#define DATATYPES_DLL_LIB // nothing
#define TEMPLATE_SPECIALIZATION_EXTERN
#endif
// You can define the following to activate the Visual Leak Detector tool for visual C++
// https://vld.codeplex.com
//#define DATATYPES_USE_VLD
#ifdef DATATYPES_USE_VLD
#include<vld.h>
#endif
#else // DATATYPES_DLL_LIB_MODIFIERS is defined
#define DATATYPES_DLL_LIB DATATYPES_DLL_LIB_MODIFIERS
#endif
Updated on 2022-08-21 at 18:10:33 +1000