mirror of
https://github.com/falk-werner/webfused
synced 2024-10-27 20:44:08 +00:00
27 lines
429 B
C++
27 lines
429 B
C++
#include "mock_libconfig.hpp"
|
|
#include "wrap_utils.hpp"
|
|
|
|
extern "C"
|
|
{
|
|
|
|
static webfused_test::ILibConfig * wfd_MockLibConfig = nullptr;
|
|
|
|
WFD_WRAP_FUNC2(wfd_MockLibConfig, config_setting_t *, config_setting_get_elem,
|
|
config_setting_t const *, unsigned int);
|
|
|
|
}
|
|
|
|
namespace webfused_test
|
|
{
|
|
|
|
MockLibConfig::MockLibConfig()
|
|
{
|
|
wfd_MockLibConfig = this;
|
|
}
|
|
|
|
MockLibConfig::~MockLibConfig()
|
|
{
|
|
wfd_MockLibConfig = nullptr;
|
|
}
|
|
|
|
} |