Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

12345678910111213141516171819202122232425262728
  1. namespace Unity.Burst.CompilerServices
  2. {
  3. /// <summary>
  4. /// Compile-time hint intrinsics.
  5. /// </summary>
  6. public static class Hint
  7. {
  8. /// <summary>
  9. /// Hints to the compiler that the condition is likely to be true.
  10. /// </summary>
  11. /// <param name="condition">The boolean condition that is likely to be true.</param>
  12. /// <returns>The condition.</returns>
  13. public static bool Likely(bool condition) => condition;
  14. /// <summary>
  15. /// Hints to the compiler that the condition is unlikely to be true.
  16. /// </summary>
  17. /// <param name="condition">The boolean condition that is unlikely to be true.</param>
  18. /// <returns>The condition.</returns>
  19. public static bool Unlikely(bool condition) => condition;
  20. /// <summary>
  21. /// Hints to the compiler that the condition can be assumed to be true.
  22. /// </summary>
  23. /// <param name="condition">The boolean condition that can be assumed to be true.</param>
  24. public static void Assume(bool condition) { }
  25. }
  26. }