lua-users home
lua-l archive

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


This release of my minimal Lua 5.1 to C binding makes two small
improvements: first, the setup macro CLUE_DECLS is split into
CLUE_DEFS (to reserve storage) and CLUE_DECLS (to declare the global
variable(s)); secondly, the main macro CLUE_DO asserts that the given
code compiles and runs without error. This avoids a nasty type of bug
where buggy Lua code's silent failure would cause the C caller to
malfunction later, with no obvious sign that the error was in the Lua
code. As a result, CLUE_DO no longer has a return code (which I found
I almost always ignored, being lazy).

I continue to find Clue a useful tool while translating C into Lua. Get it from:

http://luaforge.net/projects/clue/

-- 
http://rrt.sc3d.org