[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Example to minimize redundancy of two libraries. Lua - C library & plain C library?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 17 Aug 2011 22:10:09 -0300
> I am assuming that the best way to go about this is to write a plain
> C core and then a wrapper around it with the Lua - C API and then to
> write another C wrapper around the core for a plain C library.
I don't see the point of this second wrapper. Just write a C library
that has an API and bind that to Lua. So, two C libraries: one, your
core service library, with an API; the other, the Lua binding using
the C API.