lj_libdef.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. /* This is a generated file. DO NOT EDIT! */
  2. #ifdef LJLIB_MODULE_base
  3. #undef LJLIB_MODULE_base
  4. static const lua_CFunction lj_lib_cf_base[] = {
  5. lj_ffh_assert,
  6. lj_ffh_next,
  7. lj_ffh_pairs,
  8. lj_ffh_ipairs_aux,
  9. lj_ffh_ipairs,
  10. lj_ffh_setmetatable,
  11. lj_cf_getfenv,
  12. lj_cf_setfenv,
  13. lj_ffh_rawget,
  14. lj_cf_rawset,
  15. lj_cf_rawequal,
  16. lj_cf_rawlen,
  17. lj_cf_unpack,
  18. lj_cf_select,
  19. lj_ffh_tonumber,
  20. lj_ffh_tostring,
  21. lj_cf_error,
  22. lj_ffh_pcall,
  23. lj_cf_loadfile,
  24. lj_cf_load,
  25. lj_cf_loadstring,
  26. lj_cf_dofile,
  27. lj_cf_gcinfo,
  28. lj_cf_collectgarbage,
  29. lj_cf_newproxy,
  30. lj_cf_print
  31. };
  32. static const uint8_t lj_lib_init_base[] = {
  33. 2,0,29,70,97,115,115,101,114,116,195,110,105,108,199,98,111,111,108,101,97,
  34. 110,252,1,200,117,115,101,114,100,97,116,97,198,115,116,114,105,110,103,197,
  35. 117,112,118,97,108,198,116,104,114,101,97,100,197,112,114,111,116,111,200,102,
  36. 117,110,99,116,105,111,110,197,116,114,97,99,101,197,99,100,97,116,97,197,116,
  37. 97,98,108,101,252,9,198,110,117,109,98,101,114,132,116,121,112,101,68,110,101,
  38. 120,116,253,69,112,97,105,114,115,64,253,70,105,112,97,105,114,115,140,103,
  39. 101,116,109,101,116,97,116,97,98,108,101,76,115,101,116,109,101,116,97,116,
  40. 97,98,108,101,7,103,101,116,102,101,110,118,7,115,101,116,102,101,110,118,70,
  41. 114,97,119,103,101,116,6,114,97,119,115,101,116,8,114,97,119,101,113,117,97,
  42. 108,6,114,97,119,108,101,110,6,117,110,112,97,99,107,6,115,101,108,101,99,116,
  43. 72,116,111,110,117,109,98,101,114,195,110,105,108,197,102,97,108,115,101,196,
  44. 116,114,117,101,72,116,111,115,116,114,105,110,103,5,101,114,114,111,114,69,
  45. 112,99,97,108,108,134,120,112,99,97,108,108,8,108,111,97,100,102,105,108,101,
  46. 4,108,111,97,100,10,108,111,97,100,115,116,114,105,110,103,6,100,111,102,105,
  47. 108,101,6,103,99,105,110,102,111,14,99,111,108,108,101,99,116,103,97,114,98,
  48. 97,103,101,252,2,8,110,101,119,112,114,111,120,121,200,116,111,115,116,114,
  49. 105,110,103,5,112,114,105,110,116,252,3,200,95,86,69,82,83,73,79,78,250,255
  50. };
  51. #endif
  52. #ifdef LJLIB_MODULE_coroutine
  53. #undef LJLIB_MODULE_coroutine
  54. static const lua_CFunction lj_lib_cf_coroutine[] = {
  55. lj_cf_coroutine_status,
  56. lj_cf_coroutine_running,
  57. lj_cf_coroutine_create,
  58. lj_ffh_coroutine_yield,
  59. lj_ffh_coroutine_resume,
  60. lj_cf_coroutine_wrap
  61. };
  62. static const uint8_t lj_lib_init_coroutine[] = {
  63. 31,13,6,6,115,116,97,116,117,115,7,114,117,110,110,105,110,103,6,99,114,101,
  64. 97,116,101,69,121,105,101,108,100,70,114,101,115,117,109,101,254,4,119,114,
  65. 97,112,255
  66. };
  67. #endif
  68. #ifdef LJLIB_MODULE_math
  69. #undef LJLIB_MODULE_math
  70. static const lua_CFunction lj_lib_cf_math[] = {
  71. lj_ffh_math_abs,
  72. lj_ffh_math_sqrt,
  73. lj_ffh_math_log,
  74. lj_ffh_math_atan2,
  75. lj_ffh_math_ldexp,
  76. lj_ffh_math_min,
  77. lj_cf_math_random,
  78. lj_cf_math_randomseed
  79. };
  80. static const uint8_t lj_lib_init_math[] = {
  81. 38,16,30,67,97,98,115,133,102,108,111,111,114,132,99,101,105,108,68,115,113,
  82. 114,116,133,108,111,103,49,48,131,101,120,112,131,115,105,110,131,99,111,115,
  83. 131,116,97,110,132,97,115,105,110,132,97,99,111,115,132,97,116,97,110,132,115,
  84. 105,110,104,132,99,111,115,104,132,116,97,110,104,133,102,114,101,120,112,132,
  85. 109,111,100,102,251,248,193,99,26,220,165,76,64,131,100,101,103,251,57,157,
  86. 82,162,70,223,145,63,131,114,97,100,67,108,111,103,69,97,116,97,110,50,131,
  87. 112,111,119,132,102,109,111,100,69,108,100,101,120,112,67,109,105,110,131,109,
  88. 97,120,251,24,45,68,84,251,33,9,64,194,112,105,250,251,0,0,0,0,0,0,240,127,
  89. 196,104,117,103,101,250,252,2,6,114,97,110,100,111,109,252,2,10,114,97,110,
  90. 100,111,109,115,101,101,100,255
  91. };
  92. #endif
  93. #ifdef LJLIB_MODULE_bit
  94. #undef LJLIB_MODULE_bit
  95. static const lua_CFunction lj_lib_cf_bit[] = {
  96. lj_ffh_bit_tobit,
  97. lj_ffh_bit_lshift,
  98. lj_ffh_bit_band,
  99. lj_cf_bit_tohex
  100. };
  101. static const uint8_t lj_lib_init_bit[] = {
  102. 66,42,12,69,116,111,98,105,116,132,98,110,111,116,133,98,115,119,97,112,70,
  103. 108,115,104,105,102,116,134,114,115,104,105,102,116,135,97,114,115,104,105,
  104. 102,116,131,114,111,108,131,114,111,114,68,98,97,110,100,131,98,111,114,132,
  105. 98,120,111,114,5,116,111,104,101,120,255
  106. };
  107. #endif
  108. #ifdef LJLIB_MODULE_string
  109. #undef LJLIB_MODULE_string
  110. static const lua_CFunction lj_lib_cf_string[] = {
  111. lj_ffh_string_len,
  112. lj_ffh_string_byte,
  113. lj_ffh_string_char,
  114. lj_ffh_string_sub,
  115. lj_ffh_string_rep,
  116. lj_ffh_string_reverse,
  117. lj_cf_string_dump,
  118. lj_cf_string_find,
  119. lj_cf_string_match,
  120. lj_cf_string_gmatch,
  121. lj_cf_string_gsub,
  122. lj_cf_string_format
  123. };
  124. static const uint8_t lj_lib_init_string[] = {
  125. 78,53,14,67,108,101,110,68,98,121,116,101,68,99,104,97,114,67,115,117,98,67,
  126. 114,101,112,71,114,101,118,101,114,115,101,133,108,111,119,101,114,133,117,
  127. 112,112,101,114,4,100,117,109,112,4,102,105,110,100,5,109,97,116,99,104,254,
  128. 6,103,109,97,116,99,104,4,103,115,117,98,6,102,111,114,109,97,116,255
  129. };
  130. #endif
  131. #ifdef LJLIB_MODULE_table
  132. #undef LJLIB_MODULE_table
  133. static const lua_CFunction lj_lib_cf_table[] = {
  134. lj_cf_table_foreachi,
  135. lj_cf_table_foreach,
  136. lj_ffh_table_getn,
  137. lj_cf_table_maxn,
  138. lj_cf_table_insert,
  139. lj_cf_table_remove,
  140. lj_cf_table_concat,
  141. lj_cf_table_sort,
  142. lj_cf_table_pack
  143. };
  144. static const uint8_t lj_lib_init_table[] = {
  145. 93,61,9,8,102,111,114,101,97,99,104,105,7,102,111,114,101,97,99,104,68,103,
  146. 101,116,110,4,109,97,120,110,6,105,110,115,101,114,116,6,114,101,109,111,118,
  147. 101,6,99,111,110,99,97,116,4,115,111,114,116,193,110,4,112,97,99,107,255
  148. };
  149. #endif
  150. #ifdef LJLIB_MODULE_io_method
  151. #undef LJLIB_MODULE_io_method
  152. static const lua_CFunction lj_lib_cf_io_method[] = {
  153. lj_cf_io_method_close,
  154. lj_cf_io_method_read,
  155. lj_cf_io_method_write,
  156. lj_cf_io_method_flush,
  157. lj_cf_io_method_seek,
  158. lj_cf_io_method_setvbuf,
  159. lj_cf_io_method_lines,
  160. lj_cf_io_method___gc,
  161. lj_cf_io_method___tostring
  162. };
  163. static const uint8_t lj_lib_init_io_method[] = {
  164. 102,62,10,5,99,108,111,115,101,4,114,101,97,100,5,119,114,105,116,101,5,102,
  165. 108,117,115,104,4,115,101,101,107,7,115,101,116,118,98,117,102,5,108,105,110,
  166. 101,115,4,95,95,103,99,10,95,95,116,111,115,116,114,105,110,103,252,1,199,95,
  167. 95,105,110,100,101,120,250,255
  168. };
  169. #endif
  170. #ifdef LJLIB_MODULE_io
  171. #undef LJLIB_MODULE_io
  172. static const lua_CFunction lj_lib_cf_io[] = {
  173. lj_cf_io_open,
  174. lj_cf_io_popen,
  175. lj_cf_io_tmpfile,
  176. lj_cf_io_close,
  177. lj_cf_io_read,
  178. lj_cf_io_write,
  179. lj_cf_io_flush,
  180. lj_cf_io_input,
  181. lj_cf_io_output,
  182. lj_cf_io_lines,
  183. lj_cf_io_type
  184. };
  185. static const uint8_t lj_lib_init_io[] = {
  186. 111,62,12,252,2,192,250,4,111,112,101,110,5,112,111,112,101,110,7,116,109,112,
  187. 102,105,108,101,5,99,108,111,115,101,4,114,101,97,100,5,119,114,105,116,101,
  188. 5,102,108,117,115,104,5,105,110,112,117,116,6,111,117,116,112,117,116,5,108,
  189. 105,110,101,115,4,116,121,112,101,255
  190. };
  191. #endif
  192. #ifdef LJLIB_MODULE_os
  193. #undef LJLIB_MODULE_os
  194. static const lua_CFunction lj_lib_cf_os[] = {
  195. lj_cf_os_execute,
  196. lj_cf_os_remove,
  197. lj_cf_os_rename,
  198. lj_cf_os_tmpname,
  199. lj_cf_os_getenv,
  200. lj_cf_os_exit,
  201. lj_cf_os_clock,
  202. lj_cf_os_date,
  203. lj_cf_os_time,
  204. lj_cf_os_difftime,
  205. lj_cf_os_setlocale
  206. };
  207. static const uint8_t lj_lib_init_os[] = {
  208. 122,62,11,7,101,120,101,99,117,116,101,6,114,101,109,111,118,101,6,114,101,
  209. 110,97,109,101,7,116,109,112,110,97,109,101,6,103,101,116,101,110,118,4,101,
  210. 120,105,116,5,99,108,111,99,107,4,100,97,116,101,4,116,105,109,101,8,100,105,
  211. 102,102,116,105,109,101,9,115,101,116,108,111,99,97,108,101,255
  212. };
  213. #endif
  214. #ifdef LJLIB_MODULE_debug
  215. #undef LJLIB_MODULE_debug
  216. static const lua_CFunction lj_lib_cf_debug[] = {
  217. lj_cf_debug_getregistry,
  218. lj_cf_debug_getmetatable,
  219. lj_cf_debug_setmetatable,
  220. lj_cf_debug_getfenv,
  221. lj_cf_debug_setfenv,
  222. lj_cf_debug_getinfo,
  223. lj_cf_debug_getlocal,
  224. lj_cf_debug_setlocal,
  225. lj_cf_debug_getupvalue,
  226. lj_cf_debug_setupvalue,
  227. lj_cf_debug_upvalueid,
  228. lj_cf_debug_upvaluejoin,
  229. lj_cf_debug_getuservalue,
  230. lj_cf_debug_setuservalue,
  231. lj_cf_debug_sethook,
  232. lj_cf_debug_gethook,
  233. lj_cf_debug_debug,
  234. lj_cf_debug_traceback
  235. };
  236. static const uint8_t lj_lib_init_debug[] = {
  237. 133,62,18,11,103,101,116,114,101,103,105,115,116,114,121,12,103,101,116,109,
  238. 101,116,97,116,97,98,108,101,12,115,101,116,109,101,116,97,116,97,98,108,101,
  239. 7,103,101,116,102,101,110,118,7,115,101,116,102,101,110,118,7,103,101,116,105,
  240. 110,102,111,8,103,101,116,108,111,99,97,108,8,115,101,116,108,111,99,97,108,
  241. 10,103,101,116,117,112,118,97,108,117,101,10,115,101,116,117,112,118,97,108,
  242. 117,101,9,117,112,118,97,108,117,101,105,100,11,117,112,118,97,108,117,101,
  243. 106,111,105,110,12,103,101,116,117,115,101,114,118,97,108,117,101,12,115,101,
  244. 116,117,115,101,114,118,97,108,117,101,7,115,101,116,104,111,111,107,7,103,
  245. 101,116,104,111,111,107,5,100,101,98,117,103,9,116,114,97,99,101,98,97,99,107,
  246. 255
  247. };
  248. #endif
  249. #ifdef LJLIB_MODULE_jit
  250. #undef LJLIB_MODULE_jit
  251. static const lua_CFunction lj_lib_cf_jit[] = {
  252. lj_cf_jit_on,
  253. lj_cf_jit_off,
  254. lj_cf_jit_flush,
  255. lj_cf_jit_status,
  256. lj_cf_jit_attach
  257. };
  258. static const uint8_t lj_lib_init_jit[] = {
  259. 151,62,9,2,111,110,3,111,102,102,5,102,108,117,115,104,6,115,116,97,116,117,
  260. 115,6,97,116,116,97,99,104,252,5,194,111,115,250,252,4,196,97,114,99,104,250,
  261. 252,3,203,118,101,114,115,105,111,110,95,110,117,109,250,252,2,199,118,101,
  262. 114,115,105,111,110,250,255
  263. };
  264. #endif
  265. #ifdef LJLIB_MODULE_jit_util
  266. #undef LJLIB_MODULE_jit_util
  267. static const lua_CFunction lj_lib_cf_jit_util[] = {
  268. lj_cf_jit_util_funcinfo,
  269. lj_cf_jit_util_funcbc,
  270. lj_cf_jit_util_funck,
  271. lj_cf_jit_util_funcuvname,
  272. lj_cf_jit_util_traceinfo,
  273. lj_cf_jit_util_traceir,
  274. lj_cf_jit_util_tracek,
  275. lj_cf_jit_util_tracesnap,
  276. lj_cf_jit_util_tracemc,
  277. lj_cf_jit_util_traceexitstub,
  278. lj_cf_jit_util_ircalladdr
  279. };
  280. static const uint8_t lj_lib_init_jit_util[] = {
  281. 156,62,11,8,102,117,110,99,105,110,102,111,6,102,117,110,99,98,99,5,102,117,
  282. 110,99,107,10,102,117,110,99,117,118,110,97,109,101,9,116,114,97,99,101,105,
  283. 110,102,111,7,116,114,97,99,101,105,114,6,116,114,97,99,101,107,9,116,114,97,
  284. 99,101,115,110,97,112,7,116,114,97,99,101,109,99,13,116,114,97,99,101,101,120,
  285. 105,116,115,116,117,98,10,105,114,99,97,108,108,97,100,100,114,255
  286. };
  287. #endif
  288. #ifdef LJLIB_MODULE_jit_opt
  289. #undef LJLIB_MODULE_jit_opt
  290. static const lua_CFunction lj_lib_cf_jit_opt[] = {
  291. lj_cf_jit_opt_start
  292. };
  293. static const uint8_t lj_lib_init_jit_opt[] = {
  294. 167,62,1,5,115,116,97,114,116,255
  295. };
  296. #endif
  297. #ifdef LJLIB_MODULE_ffi_meta
  298. #undef LJLIB_MODULE_ffi_meta
  299. static const lua_CFunction lj_lib_cf_ffi_meta[] = {
  300. lj_cf_ffi_meta___index,
  301. lj_cf_ffi_meta___newindex,
  302. lj_cf_ffi_meta___eq,
  303. lj_cf_ffi_meta___len,
  304. lj_cf_ffi_meta___lt,
  305. lj_cf_ffi_meta___le,
  306. lj_cf_ffi_meta___concat,
  307. lj_cf_ffi_meta___call,
  308. lj_cf_ffi_meta___add,
  309. lj_cf_ffi_meta___sub,
  310. lj_cf_ffi_meta___mul,
  311. lj_cf_ffi_meta___div,
  312. lj_cf_ffi_meta___mod,
  313. lj_cf_ffi_meta___pow,
  314. lj_cf_ffi_meta___unm,
  315. lj_cf_ffi_meta___tostring,
  316. lj_cf_ffi_meta___pairs,
  317. lj_cf_ffi_meta___ipairs
  318. };
  319. static const uint8_t lj_lib_init_ffi_meta[] = {
  320. 168,62,19,7,95,95,105,110,100,101,120,10,95,95,110,101,119,105,110,100,101,
  321. 120,4,95,95,101,113,5,95,95,108,101,110,4,95,95,108,116,4,95,95,108,101,8,95,
  322. 95,99,111,110,99,97,116,6,95,95,99,97,108,108,5,95,95,97,100,100,5,95,95,115,
  323. 117,98,5,95,95,109,117,108,5,95,95,100,105,118,5,95,95,109,111,100,5,95,95,
  324. 112,111,119,5,95,95,117,110,109,10,95,95,116,111,115,116,114,105,110,103,7,
  325. 95,95,112,97,105,114,115,8,95,95,105,112,97,105,114,115,195,102,102,105,203,
  326. 95,95,109,101,116,97,116,97,98,108,101,250,255
  327. };
  328. #endif
  329. #ifdef LJLIB_MODULE_ffi_clib
  330. #undef LJLIB_MODULE_ffi_clib
  331. static const lua_CFunction lj_lib_cf_ffi_clib[] = {
  332. lj_cf_ffi_clib___index,
  333. lj_cf_ffi_clib___newindex,
  334. lj_cf_ffi_clib___gc
  335. };
  336. static const uint8_t lj_lib_init_ffi_clib[] = {
  337. 186,62,3,7,95,95,105,110,100,101,120,10,95,95,110,101,119,105,110,100,101,120,
  338. 4,95,95,103,99,255
  339. };
  340. #endif
  341. #ifdef LJLIB_MODULE_ffi_callback
  342. #undef LJLIB_MODULE_ffi_callback
  343. static const lua_CFunction lj_lib_cf_ffi_callback[] = {
  344. lj_cf_ffi_callback_free,
  345. lj_cf_ffi_callback_set
  346. };
  347. static const uint8_t lj_lib_init_ffi_callback[] = {
  348. 189,62,3,4,102,114,101,101,3,115,101,116,252,1,199,95,95,105,110,100,101,120,
  349. 250,255
  350. };
  351. #endif
  352. #ifdef LJLIB_MODULE_ffi
  353. #undef LJLIB_MODULE_ffi
  354. static const lua_CFunction lj_lib_cf_ffi[] = {
  355. lj_cf_ffi_cdef,
  356. lj_cf_ffi_new,
  357. lj_cf_ffi_cast,
  358. lj_cf_ffi_typeof,
  359. lj_cf_ffi_istype,
  360. lj_cf_ffi_sizeof,
  361. lj_cf_ffi_alignof,
  362. lj_cf_ffi_offsetof,
  363. lj_cf_ffi_errno,
  364. lj_cf_ffi_string,
  365. lj_cf_ffi_copy,
  366. lj_cf_ffi_fill,
  367. lj_cf_ffi_abi,
  368. lj_cf_ffi_metatype,
  369. lj_cf_ffi_gc,
  370. lj_cf_ffi_load
  371. };
  372. static const uint8_t lj_lib_init_ffi[] = {
  373. 191,62,22,4,99,100,101,102,3,110,101,119,4,99,97,115,116,6,116,121,112,101,
  374. 111,102,6,105,115,116,121,112,101,6,115,105,122,101,111,102,7,97,108,105,103,
  375. 110,111,102,8,111,102,102,115,101,116,111,102,5,101,114,114,110,111,6,115,116,
  376. 114,105,110,103,4,99,111,112,121,4,102,105,108,108,3,97,98,105,252,8,192,250,
  377. 8,109,101,116,97,116,121,112,101,252,7,192,250,2,103,99,252,5,192,250,4,108,
  378. 111,97,100,252,4,193,67,250,252,3,194,111,115,250,252,2,196,97,114,99,104,250,
  379. 255
  380. };
  381. #endif