#define WIN32_LEAN_AND_MEAN
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#define XTENSOR_USE_XSIMD
#define CONCAT(
a,
b
)
CONCAT_INNER(a, b)
#define CONCAT_INNER(
a,
b
)
a ## b
#define UNIQUE_NAME(
base
)
CONCAT(base, __LINE__)
#define M_PIF 3.141592653589793238462643383279502884e+00F
#define TIME_IN_MS std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count()
#define TIME_IN_US std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::system_clock::now().time_since_epoch()).count()
#define TIME_IN_S std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count()
#define __LOCATION__ std::string(__FILE__) + ":" + std::to_string(__LINE__)
#define DEFINE_STATIC_LOCAL(
t,
name,
arguments
)
static argument_type<void(t)>::type& name = *new argument_type<void(t)>::type arguments
#define POST_DIAGNOSTICS_EVENT(
instance,
severity,
title,
body
)
{ \
cmap msg; \
msg["instance_id"] = VAL(instance->getInstanceId().toString()); \
msg["severity"] = VAL(severity); \
msg["title"] = VAL(title); \
msg["body"] = VAL(body); \
\
cmap container; \
container["diagnostics"] = VAL(msg); \
\
api::events::postEvent(VAL(container), "output", instance->getInstanceId(), "global"); \
}
#define FN_CATCH_ALL_ERRORS 1
#define STD_FUNCTION_ERROR(
X
)
throw X;