[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: A new idea/module for generate binding code.
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 11 Nov 2011 14:27:53 +0200
On Fri, Nov 11, 2011 at 3:35 AM, Xavier Wang <firstname.lastname@example.org> wrote:
> the Lua code i showed is the thing that the generator produced. that
> means, e.g. I have a library named libfoo.a, and the header is foo.h:
> /* foo.h */
> void foo(int);
Ah thanks, now I understand. It does most of the tedious work then.
> It's good, but you must write this macro DSL by hand, and my foo.lua
> is automatic generated.
Yes, it's a solution for people who (a) like to write C and (b) want
to provide a more Lua-like interface. In the case of winapi, there are
thousands of functions available from the underlying API ;)