[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [ANN] Lua C library template
- From: Thijs Schreijer <thijs@...>
- Date: Mon, 13 Jan 2014 09:31:55 +0000
Hi list,
I finally got around to updating the template code to support Lua 5.2. The code is available from the github repo [1].
It is a library template for C libraries, with a fill-in-the-blanks approach.
Features:
- supports Lua 5.1 and 5.2
- supports Windows and Unix
- just scan the file for TODO comments to get going
- includes convenience debug code for dumping the stack and tables
- has an implemented 'close' method (though a UD with __GC method) builtin
- has both a Visual Studio project file and a command line compile script
Still missing
- a make file [no skills there, but contributions are welcome :) ]
A sample project is included; 'udtype' which is a `type()` replacement that in case of a userdata returns the name of the metatable as the second argument.
Comments are welcome.
Thijs
[1] https://github.com/Tieske/Lua_library_template