From f68fc2ee6eca9ac86d98cf17fa4a5ec63acb4b46 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 1 Nov 2003 00:48:32 +0000 Subject: [PATCH] $module name substitution to enable name mangling with the module name for the delegate registering functions. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5224 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/csharp.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SWIG/Source/Modules/csharp.cxx b/SWIG/Source/Modules/csharp.cxx index c90a4bc3f..de488c89e 100644 --- a/SWIG/Source/Modules/csharp.cxx +++ b/SWIG/Source/Modules/csharp.cxx @@ -859,6 +859,12 @@ class CSHARP : public Language { return SWIG_OK; } + virtual int insertDirective(Node *n) { + String *code = Getattr(n,"code"); + Replaceall(code, "$module", module_class_name); + return Language::insertDirective(n); + } + /* ----------------------------------------------------------------------------- * pragmaDirective() *