Unicode literals
This commit is contained in:
parent
1f0db4fb9e
commit
7d800a655d
9 changed files with 137 additions and 14 deletions
|
|
@ -1,4 +1,5 @@
|
|||
%module csharp_features
|
||||
%include "wchar.i"
|
||||
|
||||
// SWIG gets the method modifiers wrong occasionally, like with private inheritance, %csmethodmodifiers can fix this
|
||||
%csmethodmodifiers Derived::VirtualMethod() "public virtual"
|
||||
|
|
@ -19,6 +20,9 @@ public:
|
|||
class MoreDerived : public Derived {
|
||||
public:
|
||||
int variable;
|
||||
// test wide char literals support for C# module
|
||||
void methodWithDefault1(const wchar_t* s = L"literal with escapes \x1234"){}
|
||||
void methodWithDefault2(wchar_t c = L'\x1234'){}
|
||||
};
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue