|
The PiL book has some guidlines for writing Lua modules but it doesn't say anything about "C style". It just gives a description of what a module should and shouldn't do. If you want you module to be ultra portable, make it ANSI C compatible. wes On 5/9/07, Mark Edgar <medgar123@gmail.com> wrote:
> Are there C language style standards/guidelines for writing C language > Lua modules? There aren't any because there is no standard repository/collection/library of Lua modules. That said, the Lua libraries (io, math, string, table, etc) are written in a typical, elegant style and also provide a model for how to write Lua modules. These are the files listed under "Libraries" at http://www.lua.org/source/5.1/lbaselib.c -Mark