Refactor CoreCLR runtime into explicit dotnet api instead of mocking mono api
Required by platforms that will use mono under the hood for .Net 7 New `USE_CSHARP` define for C# ability Engine doesn't use `mono_*` apis directly but via MCore/MClass/MMethod/ apis
This commit is contained in:
@@ -24,15 +24,15 @@ namespace Log
|
||||
/// <summary>
|
||||
/// Creates default exception with additional data
|
||||
/// </summary>
|
||||
/// <param name="message">Additional information that help describe error</param>
|
||||
/// <param name="additionalInfo">Additional information that help describe error</param>
|
||||
CLRInnerException(const String& additionalInfo)
|
||||
: Exception(String::Format(TEXT("Current {0} CLR method has thrown an inner exception"),
|
||||
#if USE_MONO
|
||||
TEXT("Mono")
|
||||
TEXT("Mono")
|
||||
#elif USE_CORECLR
|
||||
TEXT(".NET Core")
|
||||
TEXT(".NET Core")
|
||||
#else
|
||||
TEXT("Unknown engine")
|
||||
TEXT("Unknown engine")
|
||||
#endif
|
||||
), additionalInfo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user