elua: lualian now has access to types

This commit is contained in:
q66 2014-04-25 15:41:51 +01:00 committed by Daniel Kolesa
parent 61b7fd28b8
commit c593e67306
1 changed files with 12 additions and 0 deletions

View File

@ -278,6 +278,12 @@ M.Function = ffi.metatype("Eolian_Function", {
return ffi.string(v)
end,
return_types_list_get = function(self, ftype)
local v = eolian.eolian_function_return_types_list_get(self, ftype)
if v == nil then return nil end
return v
end,
return_dflt_value_get = function(self, ftype)
local v = eolian.eolian_function_return_dflt_value_get(self, ftype)
if v == nil then return nil end
@ -327,6 +333,12 @@ ffi.metatype("Eolian_Function_Parameter", {
return ffi.string(v)
end,
types_list_get = function(self)
local v = eolian.eolian_parameter_types_list_get(self)
if v == nil then return nil end
return v
end,
name_get = function(self)
local v = eolian.eolian_parameter_name_get(self)
if v == nil then return nil end