y_stringhash.inc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /**
  2. * <library name="y_stringhash">
  3. * <section>
  4. * Description
  5. * </section>
  6. * Allows you to hash strings at compile time to use them in a switch.
  7. * <section>
  8. * Version
  9. * </section>
  10. * 2.0
  11. * <section>
  12. * Functions
  13. * </section>
  14. * <subsection>
  15. * Stock
  16. * </subsection><ul>
  17. * <symbol name="YHash">Generate a string hash at run time.</symbol>
  18. * </ul><section>
  19. * Definitions
  20. * </section><ul>
  21. * <symbol name="_H">Generate a string hash at compile time.</symbol>
  22. * <symbol name="_I">Generate a case insensitive string hash at compile time.</symbol>
  23. * </ul>
  24. * </library>
  25. *//** *//*
  26. Legal:
  27. Version: MPL 1.1
  28. The contents of this file are subject to the Mozilla Public License Version
  29. 1.1 the "License"; you may not use this file except in compliance with
  30. the License. You may obtain a copy of the License at
  31. http://www.mozilla.org/MPL/
  32. Software distributed under the License is distributed on an "AS IS" basis,
  33. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  34. for the specific language governing rights and limitations under the
  35. License.
  36. The Original Code is the YSI framework.
  37. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  38. Portions created by the Initial Developer are Copyright C 2011
  39. the Initial Developer. All Rights Reserved.
  40. Contributors:
  41. Y_Less
  42. koolk
  43. JoeBullet/Google63
  44. g_aSlice/Slice
  45. Misiur
  46. samphunter
  47. tianmeta
  48. maddinat0r
  49. spacemud
  50. Crayder
  51. Dayvison
  52. Ahmad45123
  53. Zeex
  54. irinel1996
  55. Yiin-
  56. Chaprnks
  57. Konstantinos
  58. Masterchen09
  59. Southclaws
  60. PatchwerkQWER
  61. m0k1
  62. paulommu
  63. udan111
  64. Thanks:
  65. JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  66. ZeeX - Very productive conversations.
  67. koolk - IsPlayerinAreaEx code.
  68. TheAlpha - Danish translation.
  69. breadfish - German translation.
  70. Fireburn - Dutch translation.
  71. yom - French translation.
  72. 50p - Polish translation.
  73. Zamaroht - Spanish translation.
  74. Los - Portuguese translation.
  75. Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes for
  76. me to strive to better.
  77. Pixels^ - Running XScripters where the idea was born.
  78. Matite - Pestering me to release it and using it.
  79. Very special thanks to:
  80. Thiadmer - PAWN, whose limits continue to amaze me!
  81. Kye/Kalcor - SA:MP.
  82. SA:MP Team past, present and future - SA:MP.
  83. Optional plugins:
  84. Gamer_Z - GPS.
  85. Incognito - Streamer.
  86. Me - sscanf2, fixes2, Whirlpool.
  87. */
  88. #if !defined _INC_y_stringhash
  89. #tryinclude "y_stringhash\y_stringhash_entry"
  90. #endif
  91. #if !defined _INC_y_stringhash
  92. #tryinclude "YSI_Coding\y_stringhash\y_stringhash_entry"
  93. #endif
  94. #if !defined _INC_y_stringhash
  95. #tryinclude "YSI\YSI_Coding\y_stringhash\y_stringhash_entry"
  96. #endif
  97. #if !defined _INC_y_stringhash
  98. #tryinclude <YSI_Coding\y_stringhash\y_stringhash_entry>
  99. #endif
  100. #if !defined _INC_y_stringhash
  101. #tryinclude <YSI\YSI_Coding\y_stringhash\y_stringhash_entry>
  102. #endif
  103. #if !defined _INC_y_stringhash
  104. #error Could not find y_stringhash
  105. #endif