Debug.cs 986 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.CompilerServices;
  5. using System.Text;
  6. namespace BansheeEngine
  7. {
  8. public sealed class Debug
  9. {
  10. public static void Log(object message)
  11. {
  12. Internal_Log(message.ToString());
  13. }
  14. public static void LogWarning(object message)
  15. {
  16. Internal_LogWarning(message.ToString());
  17. }
  18. public static void LogError(object message)
  19. {
  20. Internal_LogError(message.ToString());
  21. }
  22. [MethodImpl(MethodImplOptions.InternalCall)]
  23. internal static extern Component Internal_Log(string message);
  24. [MethodImpl(MethodImplOptions.InternalCall)]
  25. internal static extern Component Internal_LogWarning(string message);
  26. [MethodImpl(MethodImplOptions.InternalCall)]
  27. internal static extern Component Internal_LogError(string message);
  28. }
  29. }