diff options
author | Michi Henning <michi@zeroc.com> | 2004-07-29 00:09:44 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-07-29 00:09:44 +0000 |
commit | cfa7f90bd9a5bd891e6e4b027f32ae9811d349d5 (patch) | |
tree | 452347340ed2655656ab3b899c965e70ad96746e | |
parent | Changed code to provide access to runtime type (.NET or Mono) and major and (diff) | |
download | ice-cfa7f90bd9a5bd891e6e4b027f32ae9811d349d5.tar.bz2 ice-cfa7f90bd9a5bd891e6e4b027f32ae9811d349d5.tar.xz ice-cfa7f90bd9a5bd891e6e4b027f32ae9811d349d5.zip |
Test for Mono runtime changed to use AssemblyUtil._runtime.
-rwxr-xr-x | cpp/src/slice2cs/Gen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index abfe1de6d59..64565233035 100755 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -196,7 +196,8 @@ Slice::CsVisitor::writeDispatch(const ClassDefPtr& p) _out << sp << nl << "public override bool ice_isA(string s)"; _out << sb; - _out << nl << "if(_System.Type.GetType(\"Mono.Runtime\", false) != null) // Bug in Mono 1.0 DefaultInvariant"; + _out << nl << "if(IceInternal.AssemblyUtil._runtime == IceInternal.Runtime.Mono)" + " // Bug in Mono 1.0 DefaultInvariant"; _out << sb; _out << nl << "return _System.Array.BinarySearch(__ids, s) >= 0;"; _out << eb; |