Skip to content

Commit e84f77c

Browse files
committed
collectgarbage in Lua 5.5
1 parent 73d65dc commit e84f77c

File tree

7 files changed

+17
-1
lines changed

7 files changed

+17
-1
lines changed

locale/en-us/meta.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ cgopt.incremental =
2424
'Change the collector mode to incremental.'
2525
cgopt.generational =
2626
'Change the collector mode to generational.'
27+
cgopt.param =
28+
'Changes and/or retrieves the values of a parameter of the collector. This option must be followed by one or two extra arguments: The name of the parameter and an optional new value.'
2729
cgopt.isrunning =
2830
'Returns whether the collector is running.'
2931

locale/es-419/meta.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ cgopt.incremental =
2424
'Cambia el modo de recolección a incremental.'
2525
cgopt.generational =
2626
'Cambia el modo de recolección a generacional.'
27+
cgopt.param =
28+
'Cambia y/o recupera los valores de un parámetro del recolector. Esta opción debe ser seguida por uno o dos argumentos extra: El nombre del parámetro y un nuevo valor opcional.'
2729
cgopt.isrunning =
2830
'Retorna si el recolector está corriendo.'
2931

locale/ja-jp/meta.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ cgopt.incremental =
2424
'ガベージコレクションのモードをインクリメンタルに変更する。'
2525
cgopt.generational =
2626
'ガベージコレクションのモードを世代別に変更する。'
27+
cgopt.param =
28+
'コレクターのパラメータの値を変更・取得する。この選択肢の後には1つまたは2つの追加引数が必要:パラメータ名と新しい値(オプション)。'
2729
cgopt.isrunning =
2830
'ガベージコレクションが実行中かどうかを返す。'
2931

locale/pt-br/meta.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ cgopt.incremental =
2424
'Altera o modo do coletor para incremental.'
2525
cgopt.generational =
2626
'Altera o modo do coletor para geracional.'
27+
cgopt.param =
28+
'Altera e/ou recupera os valores de um parâmetro do coletor. Esta opção deve ser seguida por um ou dois argumentos extras: O nome do parâmetro e um novo valor opcional.'
2729
cgopt.isrunning =
2830
'Retorna um valor booleano indicando se o coletor de lixo (i.e., garbage-collection) está em execução.'
2931

locale/zh-cn/meta.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ cgopt.generational =
2626
'改变收集器模式为分代模式。'
2727
cgopt.isrunning =
2828
'返回表示收集器是否在工作的布尔值。'
29+
cgopt.param =
30+
'更改和/或检索收集器参数的值。此选项后必须跟一个或两个额外参数:参数名称(字符串)和可选的新值(整数)。'
2931

3032
collectgarbage =
3133
'这个函数是垃圾收集器的通用接口。 通过参数 opt 它提供了一组不同的功能。'

locale/zh-tw/meta.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ cgopt.incremental =
2424
'改變回收器模式為增量模式。'
2525
cgopt.generational =
2626
'改變回收器模式為分代模式。'
27+
cgopt.param =
28+
'更改和/或檢索回收器參數的值。此選項必須後跟一個或兩個額外參數:參數名稱和可選的新值。'
2729
cgopt.isrunning =
2830
'回傳表示回收器是否在工作的布林值。'
2931

meta/template/basic.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ function assert(v, message, ...) end
2323
---#if VERSION >= 5.4 then
2424
---| "incremental" # ---#DESTAIL 'cgopt.incremental'
2525
---| "generational" # ---#DESTAIL 'cgopt.generational'
26-
---#else
26+
---#end
27+
---#if VERSION >= 5.5 then
28+
---| "param" # ---#DESTAIL 'cgopt.param'
29+
---#end
30+
---#if VERSION < 5.4 then
2731
---| "setpause" # ---#DESTAIL 'cgopt.setpause'
2832
---| "setstepmul" # ---#DESTAIL 'cgopt.setstepmul'
2933
---#end

0 commit comments

Comments
 (0)