Update csharp.cxx
When people use the -namespace option, they often intend for the input to swig to wrap a particular namespace in a single module. This option should also have an effect on how C++ wrapper function names are mangled, and not just the C# proxy code.
This commit is contained in:
parent
33c17b6d5e
commit
1458326f4c
1 changed files with 9 additions and 1 deletions
|
|
@ -415,8 +415,16 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
Printf(f_runtime, "\n");
|
Printf(f_runtime, "\n");
|
||||||
|
if (namespce) {
|
||||||
|
String *wrapper_name = NewStringf("");
|
||||||
|
Printf(wrapper_name, "CSharp_%s_%%f", namespce);
|
||||||
|
Swig_name_register("wrapper", wrapper_name);
|
||||||
|
Delete(wrapper_name);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Swig_name_register("wrapper", "CSharp_%f");
|
||||||
|
}
|
||||||
|
|
||||||
Swig_name_register("wrapper", "CSharp_%f");
|
|
||||||
if (old_variable_names) {
|
if (old_variable_names) {
|
||||||
Swig_name_register("set", "set_%n%v");
|
Swig_name_register("set", "set_%n%v");
|
||||||
Swig_name_register("get", "get_%n%v");
|
Swig_name_register("get", "get_%n%v");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue