[ create a new paste ] login | about

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

C++, pasted on Sep 3:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <string>

class FileName
{
public:
    FileName(const char *name) : m_name(name) { }
    std::string m_name;
};

extern "C"
FileName* ctor_FileName(char const *name)
{
    return new FileName(name);
}

extern "C"
FileName value_FileName(FileName* refVal)
{
    return *refVal;
}


Create a new paste based on this one


Comments: