y_inline.inc 2.9 KB

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