view modules/dynlib/test/plugin.cpp @ 558:5725e2d2ab4c

Dynlib: add overload that does not throw
author David Demelier <markand@malikania.fr>
date Sun, 19 Jun 2016 16:52:32 +0200
parents f48bb09bccc7
children
line wrap: on
line source

#include <string>

#include <dynlib.hpp>

extern "C" {

void DYNLIB_EXPORT initialize(std::string &result)
{
    result = "Hello World";
}

}