You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/emmylua_code_analysis/resources/std/global.lua
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,8 @@ function assert(v, ...) end
30
30
---| "restart" # restarts automatic execution of the garbage collector.
31
31
---| "count" # returns the total memory in use by Lua in Kbytes. The value has a fractional part, so that it multiplied by 1024 gives the exact number of bytes in use by Lua (except for overflows).
32
32
---| "step" # performs a garbage-collection step. The step "size" is controlled by `arg`. With a zero value, the collector will perform one basic (indivisible) step. For non-zero values, the collector will perform as if Lua had allocated that amount of memory (in KBytes). Returns true if the step finished a collection cycle.
33
-
---| "setpause" # sets `arg` as the new value for the *pause* of the collector (see §2.5). Returns the previous value for *pause`.
33
+
---| "setpause" # sets `arg` as the new value for the *pause* of the collector (see §2.5). Returns the previous value for *pause*.
34
+
---| "setstepmul" # sets `arg` as the new value for the *step multiplier* of the collector (see §2.5). Returns the previous value for *step*.
34
35
---| "incremental" # Change the collector mode to incremental. This option can be followed by three numbers: the garbage-collector pause, the step multiplier, and the step size.
35
36
---| "generational" # Change the collector mode to generational. This option can be followed by two numbers: the garbage-collector minor multiplier and the major multiplier.
36
37
---| "isrunning" # returns a boolean that tells whether the collector is running (i.e., not stopped).
@@ -274,6 +275,8 @@ function rawequal(v1, v2) end
274
275
---@returnstd.RawGet<T, K>
275
276
functionrawget(table, index) end
276
277
278
+
---@version>5.2
279
+
---
277
280
--- Returns the length of the object `v`, which must be a table or a string, without
278
281
--- invoking any metamethod. Returns an integer number.
0 commit comments