[D] Reverted part of #3502431 mistakenly applied in r12948.
(The changes only concerned D2, and were already present in trunk.) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13000 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1fbcafc0ea
commit
7615b099d1
2 changed files with 7 additions and 8 deletions
|
|
@ -31,8 +31,7 @@ Version 2.0.5 (in progress)
|
|||
[octave] Apply patch #3424833 from jgillis: make is_object return true for swig types
|
||||
|
||||
2012-03-24: wsfulton
|
||||
[D] Apply #3502431 to fix duplicate symbols in multiple modules and compiler errors due to lack
|
||||
of const in some methods taking char*.
|
||||
[D] Apply #3502431 to fix duplicate symbols in multiple modules.
|
||||
|
||||
2012-03-21: wsfulton
|
||||
Fix #3494791 - %$isglobal for %rename matching.
|
||||
|
|
|
|||
|
|
@ -91,31 +91,31 @@ private class SwigExceptionHelper {
|
|||
&setNoSuchElementException);
|
||||
}
|
||||
|
||||
static void setException(const char* message) {
|
||||
static void setException(char* message) {
|
||||
auto exception = new object.Exception(tango.stdc.stringz.fromStringz(message).dup);
|
||||
exception.next = SwigPendingException.retrieve();
|
||||
SwigPendingException.set(exception);
|
||||
}
|
||||
|
||||
static void setIllegalArgumentException(const char* message) {
|
||||
static void setIllegalArgumentException(char* message) {
|
||||
auto exception = new tango.core.Exception.IllegalArgumentException(tango.stdc.stringz.fromStringz(message).dup);
|
||||
exception.next = SwigPendingException.retrieve();
|
||||
SwigPendingException.set(exception);
|
||||
}
|
||||
|
||||
static void setIllegalElementException(const char* message) {
|
||||
static void setIllegalElementException(char* message) {
|
||||
auto exception = new tango.core.Exception.IllegalElementException(tango.stdc.stringz.fromStringz(message).dup);
|
||||
exception.next = SwigPendingException.retrieve();
|
||||
SwigPendingException.set(exception);
|
||||
}
|
||||
|
||||
static void setIOException(const char* message) {
|
||||
static void setIOException(char* message) {
|
||||
auto exception = new tango.core.Exception.IOException(tango.stdc.stringz.fromStringz(message).dup);
|
||||
exception.next = SwigPendingException.retrieve();
|
||||
SwigPendingException.set(exception);
|
||||
}
|
||||
|
||||
static void setNoSuchElementException(const char* message) {
|
||||
static void setNoSuchElementException(char* message) {
|
||||
auto exception = new tango.core.Exception.NoSuchElementException(tango.stdc.stringz.fromStringz(message).dup);
|
||||
exception.next = SwigPendingException.retrieve();
|
||||
SwigPendingException.set(exception);
|
||||
|
|
@ -174,7 +174,7 @@ private:
|
|||
alias tango.core.Thread.ThreadLocal!(object.Exception) ThreadLocalData;
|
||||
static ThreadLocalData m_sPendingException;
|
||||
}
|
||||
alias void function(const char* message) SwigExceptionCallback;
|
||||
alias void function(char* message) SwigExceptionCallback;
|
||||
%}
|
||||
#else
|
||||
%pragma(d) imdmoduleimports=%{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue