y_als.inc 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. // Yes - FORWARD slash here!
  52. #include "y_als/impl"
  53. #if defined YSI_TESTS
  54. #include "y_testing"
  55. #include "y_als/tests"
  56. #endif
  57. // Allow multiple inclusions.
  58. #if !defined _inc_y_als
  59. #error Did you do <YSI/y_als> instead of the required <YSI\y_als>?
  60. #endif
  61. #undef _inc_y_als
  62. #if !defined ALS_MAKE
  63. #if defined ALS_PREFIX
  64. #error Use ALS_MAKE not ALS_PREFIX
  65. #endif
  66. //&&&
  67. #define ALS_MAKE<%0...%1> %0Mode_%1
  68. #endif