[ create a new paste ] login | about

Link: http://codepad.org/6E5sbc7e    [ raw code | fork ]

D, pasted on Sep 3:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import std.stdio;
import std.string;

struct FileName
{
    byte[4] __thunk;
}

extern(C) void* ctor_FileName(const(char)* name);
extern(C) FileName value_FileName(void* cppObj);

void main()
{
    const(char)* filePath = toStringz("foo");
    
    void* cppObj = ctor_FileName(filePath);
    FileName fileName = value_FileName(cppObj);
    
    writeln("ok");
}


Create a new paste based on this one


Comments: