[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
|
|
@ -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