summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/platform.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-03 13:53:44 +0800
committerruki <[email protected]>2015-06-03 13:53:44 +0800
commitbcb0d8e7eb53865f627cadd79eb181de34e86f5a (patch)
treeca0300e883af6093b54985e797311d820da68d4c /xmake/scripts/platform/platform.lua
parent6ba8d0eb8d09d5170242837ef091c04ab4da6047 (diff)
uses table.insert
Diffstat (limited to 'xmake/scripts/platform/platform.lua')
-rw-r--r--xmake/scripts/platform/platform.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/scripts/platform/platform.lua b/xmake/scripts/platform/platform.lua
index e968137fd..01728106b 100644
--- a/xmake/scripts/platform/platform.lua
+++ b/xmake/scripts/platform/platform.lua
@@ -195,7 +195,7 @@ function platform.archs(plat)
local p = platform._load(plat)
if p and p._ARCHS then
for _, arch in ipairs(p._ARCHS) do
- archs[table.getn(archs) + 1] = arch
+ table.insert(archs, arch)
end
end
@@ -245,11 +245,11 @@ function platform.menu(action)
local name = option[2]
if name then
if not exist[name] then
- menus[table.getn(menus) + 1] = option
+ table.insert(menus, option)
exist[name] = true
end
else
- menus[table.getn(menus) + 1] = option
+ table.insert(menus, option)
end
end
end