y_inline.inc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /**--------------------------------------------------------------------------**\
  2. ===================================
  3. y_inline - PAWN inline functions.
  4. ===================================
  5. Description:
  6. This library allows a user to write inline functions in their script. It
  7. first detects all inline functions and generates data on them, such as
  8. parameter counts and addresses. When an inline function is passed in code
  9. its current context data is stored. Finally, when an inline function is
  10. found to be called at some point its current local stack is stored in global
  11. memory. When the function actually is called, the stack is restored, and
  12. additional parameters which are the inline function parameters, are passed.
  13. Legal:
  14. Version: MPL 1.1
  15. The contents of this file are subject to the Mozilla Public License Version
  16. 1.1 (the "License"); you may not use this file except in compliance with
  17. the License. You may obtain a copy of the License at
  18. http://www.mozilla.org/MPL/
  19. Software distributed under the License is distributed on an "AS IS" basis,
  20. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  21. for the specific language governing rights and limitations under the
  22. License.
  23. The Original Code is the YSI Inline Function include.
  24. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  25. Portions created by the Initial Developer are Copyright (C) 2011
  26. the Initial Developer. All Rights Reserved.
  27. Contributors:
  28. ZeeX, koolk, JoeBullet/Google63, g_aSlice/Slice
  29. Thanks:
  30. JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  31. ZeeX - Very productive conversations.
  32. koolk - IsPlayerinAreaEx code.
  33. TheAlpha - Danish translation.
  34. breadfish - German translation.
  35. Fireburn - Dutch translation.
  36. yom - French translation.
  37. 50p - Polish translation.
  38. Zamaroht - Spanish translation.
  39. Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes
  40. for me to strive to better.
  41. Pixels^ - Running XScripters where the idea was born.
  42. Matite - Pestering me to release it and using it.
  43. Very special thanks to:
  44. Thiadmer - PAWN, whose limits continue to amaze me!
  45. Kye/Kalcor - SA:MP.
  46. SA:MP Team past, present and future - SA:MP.
  47. Version:
  48. 1.0
  49. Changelog:
  50. 22/06/13:
  51. Rewrote the library from scratch for better performance all round.
  52. 20/10/12:
  53. Fixed a bug with "Callback_Release" with public functions.
  54. 15/11/11:
  55. Changed the precedence of "using" types.
  56. 19/09/11:
  57. First version
  58. \**--------------------------------------------------------------------------**/
  59. #if defined _INC_y_inline
  60. #endinput
  61. #endif
  62. #define _INC_y_inline
  63. #if !defined YSI_MAX_INLINE_STRING
  64. #define YSI_MAX_INLINE_STRING YSI_MAX_STRING
  65. #endif
  66. #include "..\amx\asm"
  67. #include "..\amx\disasm"
  68. #include "..\amx\frame_info"
  69. #include "..\YSI_Storage\y_amx"
  70. #include "..\YSI_Internal\y_shortfunc"
  71. #include "..\YSI_Core\y_debug"
  72. #include "..\YSI_Core\y_utils"
  73. #include "..\YSI_Data\y_bit"
  74. #include "y_malloc"
  75. #include "y_inline/macros"
  76. #include "..\YSI_Internal\y_cgen"
  77. #include "y_inline/impl"
  78. #if defined YSI_TESTS
  79. #include "..\amx\amx_memory.inc"
  80. #include "..\YSI_Core\y_testing"
  81. #include "y_hooks"
  82. #include "y_inline/tests"
  83. #endif