mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 09:54:35 +08:00
fix warnings
This commit is contained in:
parent
833ca7a30f
commit
4a7faa58b1
@ -167,9 +167,10 @@ namespace DCFApixels.DragonECS.Internal
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
||||||
throw;
|
throw e;
|
||||||
#endif
|
#else
|
||||||
EcsDebug.PrintError(e);
|
EcsDebug.PrintError(e);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -7,7 +7,6 @@ using System;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using static DCFApixels.DragonECS.EcsDebugUtility;
|
using static DCFApixels.DragonECS.EcsDebugUtility;
|
||||||
#pragma warning disable CS0162 // Обнаружен недостижимый код
|
|
||||||
|
|
||||||
namespace DCFApixels.DragonECS
|
namespace DCFApixels.DragonECS
|
||||||
{
|
{
|
||||||
@ -132,6 +131,7 @@ namespace DCFApixels.DragonECS
|
|||||||
protected virtual void OnSetup() { }
|
protected virtual void OnSetup() { }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region RunHelper
|
#region RunHelper
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
public
|
public
|
||||||
@ -227,9 +227,10 @@ namespace DCFApixels.DragonECS
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
||||||
throw;
|
throw e;
|
||||||
#endif
|
#else
|
||||||
EcsDebug.PrintError(e);
|
EcsDebug.PrintError(e);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -266,9 +267,10 @@ namespace DCFApixels.DragonECS
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
||||||
throw;
|
throw e;
|
||||||
#endif
|
#else
|
||||||
EcsDebug.PrintError(e);
|
EcsDebug.PrintError(e);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -399,9 +401,10 @@ namespace DCFApixels.DragonECS
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
||||||
throw;
|
throw e;
|
||||||
#endif
|
#else
|
||||||
EcsDebug.PrintError(e);
|
EcsDebug.PrintError(e);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
@ -453,9 +456,10 @@ namespace DCFApixels.DragonECS
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
#if DRAGONECS_DISABLE_CATH_EXCEPTIONS
|
||||||
throw;
|
throw e;
|
||||||
#endif
|
#else
|
||||||
EcsDebug.PrintError(e);
|
EcsDebug.PrintError(e);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user