[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Mike Pall's standalone FFI: a dream?
- From: KHMan <keinhong@...>
- Date: Thu, 12 May 2011 16:02:38 +0800
On 5/12/2011 3:32 PM, CrazyButcher wrote:
There is a nice preprocessor (although not fully c compliant) inside
http://icculus.org/mojoshader/ so one could run strings trhough that
prior handing to ffi.cdef
[snip snip]
Someone did mention recently on the list that he was writing a C
preprocessor. I wonder what came of that...
A C preprocessor in Lua (with most of the useful bits) comes up to
around a 15-20KB stripped binary chunk I think. The trouble with
writing a C preprocessor is getting it to run all the examples at
the end of section 6.10.3 in the C std doc.
Agree that a cut-down preprocessor might be a good direction to
go, depending on your requirements. tolua/tolua++ has something
like that too.
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia