Releases: MrUnbelievable92/C-Sharp-Dev-Tools
Releases · MrUnbelievable92/C-Sharp-Dev-Tools
v1.0.10
v1.0.9
Additions
- added
IEnumerable<T> ForEachDirectory<T>(string folder, Func<string, T> func)
toDirectoryExtensions
- added
IEnumerable<T> ForEachFile<T>(string folder, Func<string, T> func)
toDirectoryExtensions
- added
DebugBurstIntrinsicsWindow
if used within a Unity project as an editor window (Window/C# Dev Tools/Debug Burst Intrinsics (Local Packages Only)), enabling source code modification of used Unity.Burst compiler intrinsics within theLocalPackages
folder - added
AreNotAliased
andAreNotAliased<T, U>
assertions to ensure that pointers i.e. arrays do not overlap - added
UnreachableException
and an accompanying assertionAssert.Unreachable()
, mainly to replace thedefault: throw null
/new Exception("unreachable code")
pattern in switch statements withdefault: throw Assert.Unreachable()
Improvements
- added a more recognizable error message prefix "Assertion failed:" to all assertions
Fixes
- fixed incorrect call counts of assertions being displayed in the Unity editor control window (Window/C# Dev Tools/Manage Safety Checks...)
Fixed Oversights
- included
.meta
files to allow for adding the repository to Unity projects via its GitHub URL
v1.0.8f
Reactivated assertions by default
v1.0.8
Additions
- added
IEnumerable<T> ForEachDirectory<T>(string folder, Func<string, T> func)
toDirectoryExtensions
- added
IEnumerable<T> ForEachFile<T>(string folder, Func<string, T> func)
toDirectoryExtensions
Fixed Oversights
.meta
files are now included to allow for adding the repository to Unity projects via its github URL
v1.0.7
Additions
- Added a generic extension method
Log<T>(this T obj, string format = null, IFormatProvider formatProvider = null)
, which logsobj.ToString()
usingUnityEngine.Debug.Log()
when using the Unity Editor,Console.WriteLine()
otherwise - Added some IO/Directory related utility as methods in the static
DirectoryExtensions
class. NOTE: These are subject to change
Improvements
- When using the Unity Editor, the
Window\C# Dev Tools\Manage Safety Checks
window now shows the number of method calls of Assertions that can be enabled/disabled. It is not necessarily 100% accurate. - Made I/O bound task during Unity editor startup asynchronous
v1.0.6
Additions
- Added
IsMemoryAligned<T>(T* address)
toAssert
- UNITY ONLY: Added a simple editor extension at "Window/C# Dev Tools/Manage Safety Checks..." which enables users to enable/disable safety checks one by one or alltogether
Changes
- API BREAKING CHANGE: Renamed the
Log
class toDump
Fixed Oversights
- Added a check whether or not the supplied
numEntries
parameter is 0 toAssert.IsValidSubarray
Dev Tools v.1.0.5
Added sign checks:
Assert.IsNonNegative
Assert.IsNotPositive
Assert.IsNegative
Assert.IsPositive
which express the programmer's intention more clearly than "Assert.IsNotSmaller(value, 0)" or "Assert.IsGreater(value, -1)".
C Sharp Dev Tools v1.0.4
Cosmetics replaced "" with string.Empty replaced "integral value" with "numerical value"