aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/d/4 library versions/lib.d
blob: f1e177d99691442201a2d64a45fda7a8be4720f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import std.stdio;
import std.string : format;

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

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