lua-users home
lua-l archive

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




On Wed, Oct 3, 2012 at 3:08 PM, Thijs Schreijer <thijs@thijsschreijer.nl> wrote:
>
> I suppose I could write a function "checkargs"

iirc the Sierra Wireless folks did something like that.
 
Indeed we have, and usage proves that it's an excellent API documentation (terse, readable, extensible, and you have to keep it up-to-date with the code). Eventually I'd like to hack Eclipse's type inference system so that it could use it to gather hints.

Here it is, no dependency beyond lua.h:

https://github.com/SierraWireless/luasched/blob/master/c/checks.c 



--
Fabien Fleutot
+---
| 33 chemin de Mange-Pommes
| 31520 Ramonville Saint-Agne -- France
| mobile: +33 6 28 06 09 97
| office: +33 5 61 00 06 49
| home: +33 5 61 75 05 67