From eb8cbd50439569c0c671376af6de2289987c8046 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 27 Mar 2014 16:16:33 +1000 Subject: Rename the C version of test so the names don't conflict. --- ClientHamr/GuiLua/test_c.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ClientHamr/GuiLua/test_c.c (limited to 'ClientHamr/GuiLua/test_c.c') diff --git a/ClientHamr/GuiLua/test_c.c b/ClientHamr/GuiLua/test_c.c new file mode 100644 index 0000000..4427724 --- /dev/null +++ b/ClientHamr/GuiLua/test_c.c @@ -0,0 +1,22 @@ +/* Should be a Lua module, roughly the same as test.lua + +*/ + + + +/* NOTES - + +From http://www.inf.puc-rio.br/~roberto/pil2/chapter15.pdf + +"Well-behaved C libraries should export one function called +luaopen_modname, which is the function that require tries to call after +linking the library. In Section 26.2 we will discuss how to write C +libraries." + +The "modname" bit is replaced by the name of the module. Though if the +module name includes a hyphen, the "require" function strips out the +hyphen and the bit before it. + +Though it seems that chapter 26 is not in the same place? + +*/ -- cgit v1.1