Software /
code /
prosody
Comparison
tools/modtrace.lua @ 12590:5eaf77114fdb
compat: Use table.pack (there since Lua 5.2) over our util.table
Added in d278a770eddc avoid having to deal with its absence in Lua 5.1.
No longer needed when Lua 5.1 support is dropped.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 11 Jul 2022 19:15:24 +0200 |
parent | 12589:39ae08180c81 |
comparison
equal
deleted
inserted
replaced
12589:39ae08180c81 | 12590:5eaf77114fdb |
---|---|
6 -- Example use: | 6 -- Example use: |
7 -- | 7 -- |
8 -- local dbuffer = require "tools.modtrace".trace("util.dbuffer"); | 8 -- local dbuffer = require "tools.modtrace".trace("util.dbuffer"); |
9 -- | 9 -- |
10 | 10 |
11 local t_pack = require "util.table".pack; | 11 local t_pack = table.pack; |
12 local serialize = require "util.serialization".serialize; | 12 local serialize = require "util.serialization".serialize; |
13 local unpack = table.unpack; | 13 local unpack = table.unpack; |
14 local set = require "util.set"; | 14 local set = require "util.set"; |
15 | 15 |
16 local serialize_cfg = { | 16 local serialize_cfg = { |