amx_assembly.inc 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. // If the files only exist in one place, they will only be included once because
  2. // of using "#tryinclude". If they happen to exist in two places, their own
  3. // internal include guards (or the compiler's one) will prevent their multiple
  4. // inclusions. I don't know why I ever made YSI use its own internal version...
  5. #tryinclude "..\amx\amx"
  6. #tryinclude <amx_assembly\amx>
  7. #tryinclude "..\amx_assembly\amx"
  8. #tryinclude "..\..\amx_assembly\amx"
  9. #if !defined AMX_INC
  10. #define AMX_INCLUDING_FAILED
  11. #endif
  12. #tryinclude "..\amx\amx_base"
  13. #tryinclude <amx_assembly\amx_base>
  14. #tryinclude "..\amx_assembly\amx_base"
  15. #tryinclude "..\..\amx_assembly\amx_base"
  16. #if !defined AMX_BASE_INC
  17. #define AMX_INCLUDING_FAILED
  18. #endif
  19. #tryinclude "..\amx\amx_header"
  20. #tryinclude <amx_assembly\amx_header>
  21. #tryinclude "..\amx_assembly\amx_header"
  22. #tryinclude "..\..\amx_assembly\amx_header"
  23. #if !defined AMX_HEADER_INC
  24. #define AMX_INCLUDING_FAILED
  25. #endif
  26. #tryinclude "..\amx\amx_memory"
  27. #tryinclude <amx_assembly\amx_memory>
  28. #tryinclude "..\amx_assembly\amx_memory"
  29. #tryinclude "..\..\amx_assembly\amx_memory"
  30. #if !defined AMX_MEMORY_INC
  31. #define AMX_INCLUDING_FAILED
  32. #endif
  33. #if !defined deref
  34. #error Please update "https://github.com/Zeex/amx_assembly" to get "deref()"
  35. #endif
  36. #tryinclude "..\amx\asm"
  37. #tryinclude <amx_assembly\asm>
  38. #tryinclude "..\amx_assembly\asm"
  39. #tryinclude "..\..\amx_assembly\asm"
  40. #if !defined ASM_INC
  41. #define AMX_INCLUDING_FAILED
  42. #endif
  43. #tryinclude "..\amx\asm_macros"
  44. #tryinclude <amx_assembly\asm_macros>
  45. #tryinclude "..\amx_assembly\asm_macros"
  46. #tryinclude "..\..\amx_assembly\asm_macros"
  47. #if !defined ASM_MACROS_INC
  48. #define AMX_INCLUDING_FAILED
  49. #endif
  50. #tryinclude "..\amx\codescan"
  51. #tryinclude <amx_assembly\codescan>
  52. #tryinclude "..\amx_assembly\codescan"
  53. #tryinclude "..\..\amx_assembly\codescan"
  54. #if !defined CODESCAN_INC
  55. #error Please update "https://github.com/Zeex/amx_assembly" to get "codescan.inc"
  56. #endif
  57. #tryinclude "..\amx\disasm"
  58. #tryinclude <amx_assembly\disasm>
  59. #tryinclude "..\amx_assembly\disasm"
  60. #tryinclude "..\..\amx_assembly\disasm"
  61. #if !defined DISASM_INC
  62. #define AMX_INCLUDING_FAILED
  63. #endif
  64. #tryinclude "..\amx\dynamic_call"
  65. #tryinclude <amx_assembly\dynamic_call>
  66. #tryinclude "..\amx_assembly\dynamic_call"
  67. #tryinclude "..\..\amx_assembly\dynamic_call"
  68. #if !defined DYNAMIC_CALL_INC
  69. #define AMX_INCLUDING_FAILED
  70. #endif
  71. #tryinclude "..\amx\frame_info"
  72. #tryinclude <amx_assembly\frame_info>
  73. #tryinclude "..\amx_assembly\frame_info"
  74. #tryinclude "..\..\amx_assembly\frame_info"
  75. #if !defined FRAME_INFO_INC
  76. #define AMX_INCLUDING_FAILED
  77. #endif
  78. #tryinclude "..\amx\heap_alloc"
  79. #tryinclude <amx_assembly\heap_alloc>
  80. #tryinclude "..\amx_assembly\heap_alloc"
  81. #tryinclude "..\..\amx_assembly\heap_alloc"
  82. #if !defined HEAP_ALLOC_INC
  83. #define AMX_INCLUDING_FAILED
  84. #endif
  85. #tryinclude "..\amx\opcode"
  86. #tryinclude <amx_assembly\opcode>
  87. #tryinclude "..\amx_assembly\opcode"
  88. #tryinclude "..\..\amx_assembly\opcode"
  89. #if !defined OPCODE_INC
  90. #define AMX_INCLUDING_FAILED
  91. #endif
  92. #tryinclude "..\amx\os"
  93. #tryinclude <amx_assembly\os>
  94. #tryinclude "..\amx_assembly\os"
  95. #tryinclude "..\..\amx_assembly\os"
  96. #if !defined OS_INC
  97. #define AMX_INCLUDING_FAILED
  98. #endif
  99. #tryinclude "..\amx\phys_memory"
  100. #tryinclude <amx_assembly\phys_memory>
  101. #tryinclude "..\amx_assembly\phys_memory"
  102. #tryinclude "..\..\amx_assembly\phys_memory"
  103. #if !defined PHYS_MEMORY_INC
  104. #define AMX_INCLUDING_FAILED
  105. #endif
  106. #tryinclude "..\amx\profiler"
  107. #tryinclude <amx_assembly\profiler>
  108. #tryinclude "..\amx_assembly\profiler"
  109. #tryinclude "..\..\amx_assembly\profiler"
  110. #if !defined PROFILER_INC
  111. #define AMX_INCLUDING_FAILED
  112. #endif
  113. //#tryinclude "..\amx\shellcode"
  114. //#tryinclude <amx_assembly\shellcode>
  115. //#tryinclude "..\amx_assembly\shellcode"
  116. //#tryinclude "..\..\amx_assembly\shellcode"
  117. //#if !defined SHELLCODE_INC
  118. // #define AMX_INCLUDING_FAILED
  119. //#endif
  120. #tryinclude "..\amx\stack_dump"
  121. #tryinclude <amx_assembly\stack_dump>
  122. #tryinclude "..\amx_assembly\stack_dump"
  123. #tryinclude "..\..\amx_assembly\stack_dump"
  124. #if !defined STACK_DUMP_INC
  125. #define AMX_INCLUDING_FAILED
  126. #endif
  127. #tryinclude "..\amx\stack_trace"
  128. #tryinclude <amx_assembly\stack_trace>
  129. #tryinclude "..\amx_assembly\stack_trace"
  130. #tryinclude "..\..\amx_assembly\stack_trace"
  131. #if !defined STACK_TRACE_INC
  132. #define AMX_INCLUDING_FAILED
  133. #endif
  134. #if defined AMX_INCLUDING_FAILED
  135. #error Could not include "https://github.com/Zeex/amx_assembly" - ensure it is in <amx> or <amx_assembly>
  136. #endif