summaryrefslogtreecommitdiffstats
path: root/test cases/d/3 shared library/libstuff.d
blob: 8205490f7ce24b7d5175934e8ad9bf1239c39b57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import std.stdio;
import std.string : format;

export int printLibraryString (string str)
{
    writeln ("Library says: %s".format (str));
    return 4;
}

version (Windows)
{
    import core.sys.windows.dll;
    mixin SimpleDllMain;
}