lua-users home
lua-l archive

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


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