@@ -47,10 +47,10 @@ function debug.gethook(co) end
47
47
--- |+ ' "S"' # ---#DESTAIL 'infowhat.S'
48
48
--- |+ ' "l"' # ---#DESTAIL 'infowhat.l'
49
49
--- |+ ' "t"' # ---#DESTAIL 'infowhat.t'
50
- --- #if VERSION <= 5.1 then
51
- --- |+ ' "u<5.1 "' # ---#DESTAIL 'infowhat.u<5.1'
50
+ --- #if VERSION <= 5.1 and not JIT then
51
+ --- |+ ' "u"' # ---#DESTAIL 'infowhat.u<5.1'
52
52
--- #else
53
- --- |+ ' "u>5.2 "' # ---#DESTAIL 'infowhat.u>5.2'
53
+ --- |+ ' "u"' # ---#DESTAIL 'infowhat.u>5.2'
54
54
--- #end
55
55
--- |+ ' "f"' # ---#DESTAIL 'infowhat.f'
56
56
--- #if VERSION >= 5.4 then
@@ -66,7 +66,7 @@ function debug.gethook(co) end
66
66
--- @return debuginfo
67
67
function debug .getinfo (thread , f , what ) end
68
68
69
- --- #if VERSION <= 5.1 then
69
+ --- #if VERSION <= 5.1 and not JIT then
70
70
--- #DES 'debug.getlocal<5.1'
71
71
--- @overload fun ( level : integer , index : integer ): string , any
72
72
--- @param thread thread
@@ -109,7 +109,7 @@ function debug.getupvalue(f, up) end
109
109
--- @return any
110
110
--- @return boolean
111
111
function debug .getuservalue (u , n ) end
112
- --- #elseif VERSION >= 5.2 then
112
+ --- #elseif VERSION >= 5.2 or JIT then
113
113
--- #DES 'debug.getuservalue<5.3'
114
114
--- @param u userdata
115
115
--- @return any
@@ -173,7 +173,7 @@ function debug.setupvalue(f, up, value) end
173
173
--- @param n integer
174
174
--- @return userdata udata
175
175
function debug .setuservalue (udata , value , n ) end
176
- --- #elseif VERSION >= 5.2 then
176
+ --- #elseif VERSION >= 5.2 or JIT then
177
177
--- #DES 'debug.setuservalue<5.3'
178
178
--- @param udata userdata
179
179
--- @param value any
@@ -188,14 +188,14 @@ function debug.setuservalue(udata, value) end
188
188
--- @return string message
189
189
function debug .traceback (thread , message , level ) end
190
190
191
- --- @version > 5.2
191
+ --- @version > 5.2 , JIT
192
192
--- #DES 'debug.upvalueid'
193
193
--- @param f function
194
194
--- @param n integer
195
195
--- @return lightuserdata id
196
196
function debug .upvalueid (f , n ) end
197
197
198
- --- @version > 5.2
198
+ --- @version > 5.2 , JIT
199
199
--- #DES 'debug.upvaluejoin'
200
200
--- @param f1 function
201
201
--- @param n1 integer
0 commit comments