Common.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. #########
  3. ############
  4. #############
  5. ## ###########
  6. ### ###### #####
  7. ### ####### ####
  8. ### ########## ####
  9. #### ########### ####
  10. #### ########### #####
  11. ##### ### ######## #####
  12. ##### ### ######## ######
  13. ###### ### ########### ######
  14. ###### #### ############## ######
  15. ####### ##################### ######
  16. ####### ###################### ######
  17. ####### ###### ################# ######
  18. ####### ###### ###### ######### ######
  19. ####### ## ###### ###### ######
  20. ####### ###### ##### #####
  21. ###### ##### ##### ####
  22. ##### #### ##### ###
  23. ##### ### ### #
  24. ### ### ###
  25. ## ### ###
  26. __________#_______####_______####______________
  27. 我们的未来没有BUG
  28. * ==============================================================================
  29. * Filename: Common
  30. * Created: 2018/7/2 11:36:16
  31. * Author: エル・プサイ・コングリィ
  32. * Purpose:
  33. * ==============================================================================
  34. */
  35. #if UNITY_EDITOR || USE_LUA_PROFILER
  36. namespace MikuLuaProfiler
  37. {
  38. public static class LuaConf
  39. {
  40. public const int LUAI_BITSINT = 32;
  41. #pragma warning disable 0429
  42. public const int LUAI_MAXSTACK = (LUAI_BITSINT >= 32)
  43. ? 1000000
  44. : 15000
  45. ;
  46. #pragma warning restore 0429
  47. // reserve some space for error handling
  48. public const int LUAI_FIRSTPSEUDOIDX = (-LUAI_MAXSTACK - 1000);
  49. public const string LUA_SIGNATURE = "\u001bLua";
  50. public static string LUA_DIRSEP
  51. {
  52. get { return System.IO.Path.DirectorySeparatorChar.ToString(); }
  53. }
  54. }
  55. }
  56. #endif