[D] Fix exception glue code for newer DMD 2 versions.
Thanks to Andrej Mitrovic for reporting. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
bdc9b61dc2
commit
730e14077d
2 changed files with 4 additions and 1 deletions
|
|
@ -5,6 +5,9 @@ See the RELEASENOTES file for a summary of changes in each release.
|
|||
Version 2.0.5 (in progress)
|
||||
===========================
|
||||
|
||||
2011-12-03: klickvebrot
|
||||
[D] Fix exception glue code for newer DMD 2 versions.
|
||||
|
||||
2011-12-01: szager
|
||||
[python] Fixed bug 3447426: memory leak in vector.__getitem__.
|
||||
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ private class SwigExceptionHelper {
|
|||
);
|
||||
}
|
||||
|
||||
static void setException(char* message) {
|
||||
static void setException(const char* message) {
|
||||
auto exception = new object.Exception(std.conv.to!string(message).idup);
|
||||
exception.next = SwigPendingException.retrieve();
|
||||
SwigPendingException.set(exception);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue