elua: fix error api in lua eolian bindings

This commit is contained in:
Daniel Kolesa 2019-10-09 13:19:50 +02:00
parent 85c57500ea
commit cbe3c944df
1 changed files with 4 additions and 1 deletions

View File

@ -881,7 +881,8 @@ M.type_type = {
VOID = 1,
REGULAR = 2,
CLASS = 3,
UNDEFINED = 4
ERROR = 4,
UNDEFINED = 5
}
M.type_builtin_type = {
@ -1856,6 +1857,8 @@ M.Eolian_Doc_Token = ffi.metatype("Eolian_Doc_Token", {
ffi.cast("const Eolian_Enum_Type_Field *", stor[1])
elseif tp == reft.CONSTANT then
return tp, ffi.cast("const Eolian_Constant *", stor[0])
elseif tp == reft.ERROR then
return tp, ffi.cast("const Eolian_Error *", stor[0])
else
return reft.UNKNOWN
end