elementary: enable lua binding gen

This commit is contained in:
Daniel Kolesa 2016-03-29 11:23:43 +01:00
parent b1070f9478
commit 5ad9a8542b
2 changed files with 10 additions and 7 deletions

View File

@ -966,18 +966,18 @@ EXTRA_DIST += \
tests/elementary/elm_test_helper.h tests/elementary/elm_test_helper.h
# if HAVE_ELUA if HAVE_ELUA
# elementary_eolian_lua = $(elm_eolian_files:%.eo=%.eo.lua) elementary_eolian_lua = $(elm_eolian_files:%.eo=%.eo.lua)
# generated_elementary_lua_all = $(elementary_eolian_lua) generated_elementary_lua_all = $(elementary_eolian_lua)
# CLEANFILES += $(generated_elementary_lua_all) CLEANFILES += $(generated_elementary_lua_all)
# installed_elementaryluadir = $(datadir)/elua/modules/elementary installed_elementaryluadir = $(datadir)/elua/modules/elementary
# nodist_installed_elementarylua_DATA = $(generated_elementary_lua_all) nodist_installed_elementarylua_DATA = $(generated_elementary_lua_all)
# endif endif
if HAVE_JS if HAVE_JS

View File

@ -55,6 +55,9 @@ local num_others = {
} }
local is_num = function(x) local is_num = function(x)
if not x then
return false
end
if num_others [x ] then return true end if num_others [x ] then return true end
if int_builtin[x ] then return true end if int_builtin[x ] then return true end
if int_builtin["u" .. x] then return true end if int_builtin["u" .. x] then return true end