lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Nov 11, 2011 at 3:35 AM, Xavier Wang <weasley.wx@gmail.com> 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 ;)

steve d.