We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm doing af alien ffi wrapper for some library. The library have a nasty habit of returning structs - like this:
struct version_info { int major; int minor; int micro; };
struct version_info some_library_get_version(void) { struct version_info ver;
ver.major = MAJOR_VERSION; ver.minor = MINOR_VERSION; ver.micro = MICRO_VERSION; return ver;
}
How do I represent this through lua/alien ?
Thanks in advance
/Uffe
The text was updated successfully, but these errors were encountered:
Hi Uffe,
Alien does not support this directly, but a workaround might be possible. What is the architecture (CPU and OS)?
Fabio Mascarenhas
On Sun, Jul 6, 2014 at 6:13 PM, Uffe Jakobsen [email protected] wrote:
Hi, I'm doing af alien ffi wrapper for some library. The library have a nasty habit of returning structs - like this: struct version_info { int major; int minor; int micro; }; struct version_info some_library_get_version(void) { struct version_info ver; ver.major = MAJOR_VERSION; ver.minor = MINOR_VERSION; ver.micro = MICRO_VERSION; return ver; } How do I represent this through lua/alien ? Thanks in advance /Uffe — Reply to this email directly or view it on GitHub #42.
ver.major = MAJOR_VERSION; ver.minor = MINOR_VERSION; ver.micro = MICRO_VERSION;
return ver;
— Reply to this email directly or view it on GitHub #42.
Sorry, something went wrong.
Hi Fabio, Thanks for your fast reply. I'm targeting FreeBSD/Linux 64bit (amd64) /Uffe
No branches or pull requests
Hi,
I'm doing af alien ffi wrapper for some library.
The library have a nasty habit of returning structs - like this:
struct version_info
{
int major;
int minor;
int micro;
};
struct version_info some_library_get_version(void)
{
struct version_info ver;
}
How do I represent this through lua/alien ?
Thanks in advance
/Uffe
The text was updated successfully, but these errors were encountered: