X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FMono%2FRuntime.cs;h=7a5f9887c6334fff01b0f7f9835659b44fac9be3;hb=0434dc02352870434ccc4226021d7877d2c9df8c;hp=9636fb1bda3ad123e3c4b73a611db16564ae8b25;hpb=987f8c63e214937c50dcb308149f7558a2cbba41;p=mono.git diff --git a/mcs/class/corlib/Mono/Runtime.cs b/mcs/class/corlib/Mono/Runtime.cs index 9636fb1bda3..7a5f9887c63 100644 --- a/mcs/class/corlib/Mono/Runtime.cs +++ b/mcs/class/corlib/Mono/Runtime.cs @@ -13,10 +13,10 @@ // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: -// +// // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. -// +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND @@ -31,12 +31,15 @@ using System.Runtime.CompilerServices; namespace Mono { - internal class Runtime +#if MOBILE + public +#endif + static class Runtime { - + [MethodImplAttribute (MethodImplOptions.InternalCall)] private static extern void mono_runtime_install_handlers (); - + static internal void InstallSignalHandlers () { mono_runtime_install_handlers (); @@ -46,7 +49,20 @@ namespace Mono { // Safe to be called using reflection // Format is undefined only for use as a string for reporting [MethodImplAttribute (MethodImplOptions.InternalCall)] - internal static extern string GetDisplayName (); +#if MOBILE + public +#else + internal +#endif + static extern string GetDisplayName (); + + [MethodImplAttribute (MethodImplOptions.InternalCall)] + static extern string GetNativeStackTrace (Exception exception); + + public static bool SetGCAllowSynchronousMajor (bool flag) + { + // No longer used + return true; + } } - }