-
83.33%
Rate
-
5
Hits
-
1
Missed
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- -------------------------------------------------------------------------------
- -- Lua compability tweak(s) for PUMAS
- -- Author: Valentin Niess
- -- License: GNU LGPL-3.0
- -------------------------------------------------------------------------------
- local compat = {}
-
-
- -------------------------------------------------------------------------------
- -- Wrapper for table.new
- -------------------------------------------------------------------------------
- do
- local ok = pcall(require, 'table.new')
- if ok then
- compat.table_new = table.new
- else
- compat.table_new = function () return {} end
- end
- end
-
-
- -------------------------------------------------------------------------------
- -- Return the package
- -------------------------------------------------------------------------------
- return compat