diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2013-12-23 19:50:41 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2013-12-23 19:50:41 +0000 |
commit | 135a7cc558442062ce8d65de834870a71eb30aca (patch) | |
tree | c3c68ae61768f9ff18bf72ba6ccff630705f1c49 /Lib/d | |
parent | 279ebdc0cf655feca4c80c23f115e90ce0470102 (diff) | |
download | swig-135a7cc558442062ce8d65de834870a71eb30aca.tar.gz |
Beautify director.swg files
Also some comment corrections for Perl
Diffstat (limited to 'Lib/d')
-rw-r--r-- | Lib/d/director.swg | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/d/director.swg b/Lib/d/director.swg index 9692e03c1..d0ef2372b 100644 --- a/Lib/d/director.swg +++ b/Lib/d/director.swg @@ -13,6 +13,7 @@ #include <string> namespace Swig { + // Director base class – not used in D directors. class Director { }; @@ -23,13 +24,16 @@ namespace Swig { std::string swig_msg; public: - DirectorException(const char* msg) : swig_msg(msg) { + DirectorException(const char *msg) : swig_msg(msg) { } + DirectorException(const std::string &msg) : swig_msg(msg) { } + const std::string& what() const { return swig_msg; } + virtual ~DirectorException() { } }; @@ -38,7 +42,7 @@ namespace Swig { // from D code thorugh the director layer. class DirectorPureVirtualException : public Swig::DirectorException { public: - DirectorPureVirtualException(const char* msg) : DirectorException(std::string("Attempted to invoke pure virtual method ") + msg) { + DirectorPureVirtualException(const char *msg) : DirectorException(std::string("Attempted to invoke pure virtual method ") + msg) { } }; } |