Sha256: 287befc976edda27b41b777545106a03ff86801dd5092448dc45eb950c93d8ba

Contents?: true

Size: 404 Bytes

Versions: 3

Compression:

Stored size: 404 Bytes

Contents

/**
 * This file is not a test case. This file is to generate a dynamic library for
 * testing the dll loading code.
 */

#include <string>
#include <iostream>

static std::string global_str;

extern "C"
#if _MSC_VER
   __declspec(dllexport)
#else
__attribute__ ((visibility ("default")))
#endif
      int say_hello ()
{
   global_str = "Hello, DLL!";
   std::cout << global_str << "\n";
   return 42;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
libmongocrypt-helper-1.7.4.0.1002 ext/libmongocrypt/libmongocrypt/test/test-dll.cpp
libmongocrypt-helper-1.7.4.0.1001 ext/libmongocrypt/libmongocrypt/test/test-dll.cpp
libmongocrypt-helper-1.7.4.0.1000 ext/libmongocrypt/libmongocrypt/test/test-dll.cpp