y_als.inc 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /**--------------------------------------------------------------------------**\
  2. ==============================
  3. y_als - Useful codes for ALS
  4. ==============================
  5. Description:
  6. Provides a number of macros for making ALS (Advanced Library System)
  7. callback hooking simpler.
  8. Legal:
  9. Version: MPL 1.1
  10. The contents of this file are subject to the Mozilla Public License Version
  11. 1.1 (the "License"); you may not use this file except in compliance with
  12. the License. You may obtain a copy of the License at
  13. http://www.mozilla.org/MPL/
  14. Software distributed under the License is distributed on an "AS IS" basis,
  15. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  16. for the specific language governing rights and limitations under the
  17. License.
  18. The Original Code is the YSI ALS include.
  19. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  20. Portions created by the Initial Developer are Copyright (C) 2011
  21. the Initial Developer. All Rights Reserved.
  22. Contributors:
  23. ZeeX, koolk, JoeBullet/Google63, g_aSlice/Slice
  24. Thanks:
  25. JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  26. ZeeX - Very productive conversations.
  27. koolk - IsPlayerinAreaEx code.
  28. TheAlpha - Danish translation.
  29. breadfish - German translation.
  30. Fireburn - Dutch translation.
  31. yom - French translation.
  32. 50p - Polish translation.
  33. Zamaroht - Spanish translation.
  34. Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes
  35. for me to strive to better.
  36. Pixels^ - Running XScripters where the idea was born.
  37. Matite - Pestering me to release it and using it.
  38. Very special thanks to:
  39. Thiadmer - PAWN, whose limits continue to amaze me!
  40. Kye/Kalcor - SA:MP.
  41. SA:MP Team past, present and future - SA:MP.
  42. Version:
  43. 1.0
  44. Changelog:
  45. 29/04/11:
  46. Added "call" macro to make testing easier.
  47. 21/10/10:
  48. First version
  49. </remarks>
  50. \**--------------------------------------------------------------------------**/
  51. #if !defined _INC_y_als
  52. #include "..\YSI_Internal\y_version"
  53. #include "y_utils"
  54. #include "..\YSI_Server\y_scriptinit"
  55. #include "..\YSI_Data\y_bit"
  56. #include "..\YSI_Internal\y_shortfunc"
  57. #include "y_als/impl"
  58. #if defined YSI_TESTS
  59. #include "..\YSI_Coding\y_va"
  60. #include "y_testing"
  61. #include "y_als/tests"
  62. #endif
  63. #define _INC_y_als
  64. #endif
  65. // Allow multiple inclusions.
  66. #include "..\YSI_Internal\y_compilerpass"
  67. #if AUTO_INCLUDE_GUARD
  68. #if !defined _inc_y_als
  69. #error Did you do <YSI/y_als> instead of the required <YSI\y_als>?
  70. #endif
  71. #undef _inc_y_als
  72. #endif
  73. #if !defined ALS_MAKE
  74. #if defined ALS_PREFIX
  75. #error Use ALS_MAKE not ALS_PREFIX
  76. #endif
  77. //&&&
  78. #define ALS_MAKE<%0...%1> %0Mode_%1
  79. #endif