diff options
Diffstat (limited to 'src/3rdParty/lua/lua.h')
-rw-r--r-- | src/3rdParty/lua/lua.h | 53 |
1 files changed, 34 insertions, 19 deletions
diff --git a/src/3rdParty/lua/lua.h b/src/3rdParty/lua/lua.h index bfba4d1..040cc8e 100644 --- a/src/3rdParty/lua/lua.h +++ b/src/3rdParty/lua/lua.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h $ | 2 | ** $Id: lua.h $ |
3 | ** Lua - A Scripting Language | 3 | ** Lua - A Scripting Language |
4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) | 4 | ** Lua.org, PUC-Rio, Brazil (www.lua.org) |
5 | ** See Copyright Notice at the end of this file | 5 | ** See Copyright Notice at the end of this file |
6 | */ | 6 | */ |
7 | 7 | ||
@@ -13,20 +13,19 @@ | |||
13 | #include <stddef.h> | 13 | #include <stddef.h> |
14 | 14 | ||
15 | 15 | ||
16 | #include "luaconf.h" | 16 | #define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2023 Lua.org, PUC-Rio" |
17 | #define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo, W. Celes" | ||
17 | 18 | ||
18 | 19 | ||
19 | #define LUA_VERSION_MAJOR "5" | 20 | #define LUA_VERSION_MAJOR_N 5 |
20 | #define LUA_VERSION_MINOR "4" | 21 | #define LUA_VERSION_MINOR_N 4 |
21 | #define LUA_VERSION_RELEASE "5" | 22 | #define LUA_VERSION_RELEASE_N 6 |
22 | 23 | ||
23 | #define LUA_VERSION_NUM 504 | 24 | #define LUA_VERSION_NUM (LUA_VERSION_MAJOR_N * 100 + LUA_VERSION_MINOR_N) |
24 | #define LUA_VERSION_RELEASE_NUM (LUA_VERSION_NUM * 100 + 5) | 25 | #define LUA_VERSION_RELEASE_NUM (LUA_VERSION_NUM * 100 + LUA_VERSION_RELEASE_N) |
25 | 26 | ||
26 | #define LUA_VERSION "Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR | 27 | |
27 | #define LUA_RELEASE LUA_VERSION "." LUA_VERSION_RELEASE | 28 | #include "luaconf.h" |
28 | #define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2022 Lua.org, PUC-Rio" | ||
29 | #define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo, W. Celes" | ||
30 | 29 | ||
31 | 30 | ||
32 | /* mark for precompiled code ('<esc>Lua') */ | 31 | /* mark for precompiled code ('<esc>Lua') */ |
@@ -131,6 +130,16 @@ typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); | |||
131 | typedef void (*lua_WarnFunction) (void *ud, const char *msg, int tocont); | 130 | typedef void (*lua_WarnFunction) (void *ud, const char *msg, int tocont); |
132 | 131 | ||
133 | 132 | ||
133 | /* | ||
134 | ** Type used by the debug API to collect debug information | ||
135 | */ | ||
136 | typedef struct lua_Debug lua_Debug; | ||
137 | |||
138 | |||
139 | /* | ||
140 | ** Functions to be called by the debugger in specific events | ||
141 | */ | ||
142 | typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); | ||
134 | 143 | ||
135 | 144 | ||
136 | /* | 145 | /* |
@@ -153,7 +162,8 @@ extern const char lua_ident[]; | |||
153 | LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); | 162 | LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); |
154 | LUA_API void (lua_close) (lua_State *L); | 163 | LUA_API void (lua_close) (lua_State *L); |
155 | LUA_API lua_State *(lua_newthread) (lua_State *L); | 164 | LUA_API lua_State *(lua_newthread) (lua_State *L); |
156 | LUA_API int (lua_resetthread) (lua_State *L, lua_State *from); | 165 | LUA_API int (lua_closethread) (lua_State *L, lua_State *from); |
166 | LUA_API int (lua_resetthread) (lua_State *L); /* Deprecated! */ | ||
157 | 167 | ||
158 | LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); | 168 | LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); |
159 | 169 | ||
@@ -442,12 +452,6 @@ LUA_API void (lua_closeslot) (lua_State *L, int idx); | |||
442 | #define LUA_MASKLINE (1 << LUA_HOOKLINE) | 452 | #define LUA_MASKLINE (1 << LUA_HOOKLINE) |
443 | #define LUA_MASKCOUNT (1 << LUA_HOOKCOUNT) | 453 | #define LUA_MASKCOUNT (1 << LUA_HOOKCOUNT) |
444 | 454 | ||
445 | typedef struct lua_Debug lua_Debug; /* activation record */ | ||
446 | |||
447 | |||
448 | /* Functions to be called by the debugger in specific events */ | ||
449 | typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); | ||
450 | |||
451 | 455 | ||
452 | LUA_API int (lua_getstack) (lua_State *L, int level, lua_Debug *ar); | 456 | LUA_API int (lua_getstack) (lua_State *L, int level, lua_Debug *ar); |
453 | LUA_API int (lua_getinfo) (lua_State *L, const char *what, lua_Debug *ar); | 457 | LUA_API int (lua_getinfo) (lua_State *L, const char *what, lua_Debug *ar); |
@@ -491,8 +495,19 @@ struct lua_Debug { | |||
491 | /* }====================================================================== */ | 495 | /* }====================================================================== */ |
492 | 496 | ||
493 | 497 | ||
498 | #define LUAI_TOSTRAUX(x) #x | ||
499 | #define LUAI_TOSTR(x) LUAI_TOSTRAUX(x) | ||
500 | |||
501 | #define LUA_VERSION_MAJOR LUAI_TOSTR(LUA_VERSION_MAJOR_N) | ||
502 | #define LUA_VERSION_MINOR LUAI_TOSTR(LUA_VERSION_MINOR_N) | ||
503 | #define LUA_VERSION_RELEASE LUAI_TOSTR(LUA_VERSION_RELEASE_N) | ||
504 | |||
505 | #define LUA_VERSION "Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR | ||
506 | #define LUA_RELEASE LUA_VERSION "." LUA_VERSION_RELEASE | ||
507 | |||
508 | |||
494 | /****************************************************************************** | 509 | /****************************************************************************** |
495 | * Copyright (C) 1994-2022 Lua.org, PUC-Rio. | 510 | * Copyright (C) 1994-2023 Lua.org, PUC-Rio. |
496 | * | 511 | * |
497 | * Permission is hereby granted, free of charge, to any person obtaining | 512 | * Permission is hereby granted, free of charge, to any person obtaining |
498 | * a copy of this software and associated documentation files (the | 513 | * a copy of this software and associated documentation files (the |