22 lines
540 B
C++
22 lines
540 B
C++
#pragma once
|
|
#include "bts_export.h"
|
|
|
|
// this is needed because we cannot relly on static initialization do
|
|
// work reliably in DLL's on Windows. See:
|
|
// https://msdn.microsoft.com/en-us/library/windows/desktop/dn633971(v=vs.85).aspx
|
|
// for a list of restrictions
|
|
|
|
namespace bts {
|
|
namespace utils {
|
|
|
|
extern "C" BTS_EXPORT void init_spark_lib();
|
|
extern "C" BTS_EXPORT void finit_spark_lib();
|
|
|
|
struct SparkLibInit {
|
|
SparkLibInit() { init_spark_lib(); }
|
|
~SparkLibInit() { finit_spark_lib(); }
|
|
};
|
|
|
|
} // namespace utils
|
|
} // namespace bts
|