1
0

y_inline.inc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. #if defined _INC_y_inline
  2. #endinput
  3. #endif
  4. #define _INC_y_inline
  5. /**
  6. * <library name="y_inline">
  7. * <section>
  8. * Description
  9. * </section>
  10. * This library allows a user to write inline functions in their script. It
  11. * first detects all inline functions and generates data on them, such as
  12. * parameter counts and addresses. When an inline function is passed in code
  13. * its current context data is stored. Finally, when an inline function is
  14. * found to be called at some point its current local stack is stored in global
  15. * memory. When the function actually is called, the stack is restored, and
  16. * additional parameters which are the inline function parameters, are passed.
  17. * <section>
  18. * Version
  19. * </section>
  20. * 1.0
  21. * </library>
  22. *//** *//*
  23. Legal:
  24. Version: MPL 1.1
  25. The contents of this file are subject to the Mozilla Public License Version
  26. 1.1 the "License"; you may not use this file except in compliance with
  27. the License. You may obtain a copy of the License at
  28. http://www.mozilla.org/MPL/
  29. Software distributed under the License is distributed on an "AS IS" basis,
  30. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  31. for the specific language governing rights and limitations under the
  32. License.
  33. The Original Code is the YSI framework.
  34. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  35. Portions created by the Initial Developer are Copyright C 2011
  36. the Initial Developer. All Rights Reserved.
  37. Contributors:
  38. Y_Less
  39. koolk
  40. JoeBullet/Google63
  41. g_aSlice/Slice
  42. Misiur
  43. samphunter
  44. tianmeta
  45. maddinat0r
  46. spacemud
  47. Crayder
  48. Dayvison
  49. Ahmad45123
  50. Zeex
  51. irinel1996
  52. Yiin-
  53. Chaprnks
  54. Konstantinos
  55. Masterchen09
  56. Southclaws
  57. PatchwerkQWER
  58. m0k1
  59. paulommu
  60. udan111
  61. Thanks:
  62. JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  63. ZeeX - Very productive conversations.
  64. koolk - IsPlayerinAreaEx code.
  65. TheAlpha - Danish translation.
  66. breadfish - German translation.
  67. Fireburn - Dutch translation.
  68. yom - French translation.
  69. 50p - Polish translation.
  70. Zamaroht - Spanish translation.
  71. Los - Portuguese translation.
  72. Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes for
  73. me to strive to better.
  74. Pixels^ - Running XScripters where the idea was born.
  75. Matite - Pestering me to release it and using it.
  76. Very special thanks to:
  77. Thiadmer - PAWN, whose limits continue to amaze me!
  78. Kye/Kalcor - SA:MP.
  79. SA:MP Team past, present and future - SA:MP.
  80. Optional plugins:
  81. Gamer_Z - GPS.
  82. Incognito - Streamer.
  83. Me - sscanf2, fixes2, Whirlpool.
  84. */
  85. #include "..\YSI_Internal\y_compilerdata"
  86. #if !defined YSI_MAX_INLINE_STRING
  87. #define YSI_MAX_INLINE_STRING YSI_MAX_STRING
  88. #endif
  89. #include "..\YSI_Internal\y_thirdpartyinclude"
  90. #include "..\YSI_Internal\y_version"
  91. #include "..\YSI_Storage\y_amx"
  92. #include "..\YSI_Internal\y_shortfunc"
  93. #include "..\YSI_Core\y_debug"
  94. #include "..\YSI_Core\y_utils"
  95. #include "..\YSI_Data\y_bit"
  96. #include "y_malloc"
  97. #include "y_inline/macros"
  98. #include "..\YSI_Internal\y_cgen"
  99. #include "y_inline/impl"
  100. #if defined YSI_TESTS
  101. #include "..\YSI_Core\y_testing"
  102. #include "y_hooks"
  103. #include "y_inline/tests"
  104. #endif