Преглед на файлове

Cleanup library function caching in dasm_x86.lua.

Mike Pall преди 15 години
родител
ревизия
309d8f5aab
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      dynasm/dasm_x86.lua

+ 1 - 2
dynasm/dasm_x86.lua

@@ -23,12 +23,11 @@ local _M = { _info = _info }
 
 -- Cache library functions.
 local type, tonumber, pairs, ipairs = type, tonumber, pairs, ipairs
-local assert, unpack = assert, unpack
+local assert, unpack, setmetatable = assert, unpack, setmetatable
 local _s = string
 local sub, format, byte, char = _s.sub, _s.format, _s.byte, _s.char
 local find, match, gmatch, gsub = _s.find, _s.match, _s.gmatch, _s.gsub
 local concat, sort = table.concat, table.sort
-local char, unpack = string.char, unpack
 
 -- Inherited tables and callbacks.
 local g_opt, g_arch