diff options
Diffstat (limited to 'src/luajit_rolling.h')
| -rw-r--r-- | src/luajit_rolling.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/luajit_rolling.h b/src/luajit_rolling.h index 7f4f531d..f0b64f2a 100644 --- a/src/luajit_rolling.h +++ b/src/luajit_rolling.h | |||
| @@ -30,9 +30,9 @@ | |||
| 30 | 30 | ||
| 31 | #include "lua.h" | 31 | #include "lua.h" |
| 32 | 32 | ||
| 33 | #define LUAJIT_VERSION "LuaJIT 2.0.ROLLING" | 33 | #define LUAJIT_VERSION "LuaJIT 2.1.ROLLING" |
| 34 | #define LUAJIT_VERSION_NUM 20099 /* Deprecated. */ | 34 | #define LUAJIT_VERSION_NUM 20199 /* Deprecated. */ |
| 35 | #define LUAJIT_VERSION_SYM luaJIT_version_2_0_ROLLING | 35 | #define LUAJIT_VERSION_SYM luaJIT_version_2_1_ROLLING |
| 36 | #define LUAJIT_COPYRIGHT "Copyright (C) 2005-2026 Mike Pall" | 36 | #define LUAJIT_COPYRIGHT "Copyright (C) 2005-2026 Mike Pall" |
| 37 | #define LUAJIT_URL "https://luajit.org/" | 37 | #define LUAJIT_URL "https://luajit.org/" |
| 38 | 38 | ||
| @@ -64,6 +64,15 @@ enum { | |||
| 64 | /* Control the JIT engine. */ | 64 | /* Control the JIT engine. */ |
| 65 | LUA_API int luaJIT_setmode(lua_State *L, int idx, int mode); | 65 | LUA_API int luaJIT_setmode(lua_State *L, int idx, int mode); |
| 66 | 66 | ||
| 67 | /* Low-overhead profiling API. */ | ||
| 68 | typedef void (*luaJIT_profile_callback)(void *data, lua_State *L, | ||
| 69 | int samples, int vmstate); | ||
| 70 | LUA_API void luaJIT_profile_start(lua_State *L, const char *mode, | ||
| 71 | luaJIT_profile_callback cb, void *data); | ||
| 72 | LUA_API void luaJIT_profile_stop(lua_State *L); | ||
| 73 | LUA_API const char *luaJIT_profile_dumpstack(lua_State *L, const char *fmt, | ||
| 74 | int depth, size_t *len); | ||
| 75 | |||
| 67 | /* Enforce (dynamic) linker error for version mismatches. Call from main. */ | 76 | /* Enforce (dynamic) linker error for version mismatches. Call from main. */ |
| 68 | LUA_API void LUAJIT_VERSION_SYM(void); | 77 | LUA_API void LUAJIT_VERSION_SYM(void); |
| 69 | 78 | ||
