[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua code generation and optimisation
- From: Geoff Leyland <geoff_leyland@...>
- Date: Sun, 7 Oct 2012 22:01:27 +1300
On 4/10/2012, at 7:50 AM, Geoff Leyland <geoff_leyland@fastmail.fm> wrote:
> On 4/10/2012, at 1:14 AM, David Collier <myshkin@cix.co.uk> wrote:
>
>> I suppose I could write a function "checkargs", and pass it the arguments...
>
> Or you could set a debug hook that parses LuaDoc-like comments and checks the arguments against them. Then on your desktop you could go lua -lcheckargs myscript.lua, but leave out the -lcheckargs on your embedded system.
>
> Here's a five-minute proof-of-concept...
Apologies for replying to myself, but in case anyone's interested, there's a couple-of-hour proof of concept at https://github.com/geoffleyland/argcheck