view lua/luadyncall/src/typesignature.lua @ 0:0cfcc391201f

initial from svn dyncall-1745
author Daniel Adler
date Thu, 19 Mar 2015 22:26:28 +0100
parents
children
line wrap: on
line source

--- Get type information from type signature.
--
-- @param typesignature string representing type informations. Fundamental type signatures are represented by characters such as 'c' for C char, 's' for C short, 'i' for C int, 'j' for C long
-- 'l' for C long long, 'f' for C float, 'd' for C double, 'p' for C pointer,
-- 'B' for ISO C99 _Bool_t/C++ bool, 'v' for C void. Upper-case characters 'CSIJL' refer to the corresponding unsigned C type.
-- Function signature syntax: 'name(argtypes..)resulttypes..;'
-- Structure signature syntax: 'name{fieldtypes..)fieldnames..;' the fieldnames are space separated text tokens.
-- Named objects can be refered using '<name>' syntax.
-- pointer types can be specified by prefixing multiple '*'.
function typeinfo(typesignature)
end