X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fioncore_luaext.lua;h=a8ab8b860e4c1894eeb349409626e4b375f09bef;hb=e3aec18706513a87eaa7839dfdaf7e0fcd0d8d2a;hp=cb52b9705f781557506a81e05a6a1b33c64668b6;hpb=8366314611bf30a0f31d25bf5f5023186fa87692;p=ion3.git diff --git a/ioncore/ioncore_luaext.lua b/ioncore/ioncore_luaext.lua index cb52b97..a8ab8b8 100644 --- a/ioncore/ioncore_luaext.lua +++ b/ioncore/ioncore_luaext.lua @@ -1,12 +1,9 @@ -- -- ion/share/ioncore_luaext.lua -- --- Copyright (c) Tuomo Valkonen 2004-2006. +-- Copyright (c) Tuomo Valkonen 2004-2009. -- --- Ion is free software; you can redistribute it and/or modify it under --- the terms of the GNU Lesser General Public License as published by --- the Free Software Foundation; either version 2.1 of the License, or --- (at your option) any later version. +-- See the included file LICENSE for details. -- @@ -85,7 +82,7 @@ end --DOC -- Export a list of functions from \var{lib} into global namespace. function export(lib, ...) - for k, v in pairs(arg) do + for k, v in pairs({...}) do _G[v]=lib[v] end end