aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test_c.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-27 16:16:33 +1000
committerDavid Walter Seikel2014-03-27 16:16:33 +1000
commiteb8cbd50439569c0c671376af6de2289987c8046 (patch)
tree3e388757e8c54af893adb6593742440116916454 /ClientHamr/GuiLua/test_c.c
parentAdd a test properties file. (diff)
downloadSledjHamr-eb8cbd50439569c0c671376af6de2289987c8046.zip
SledjHamr-eb8cbd50439569c0c671376af6de2289987c8046.tar.gz
SledjHamr-eb8cbd50439569c0c671376af6de2289987c8046.tar.bz2
SledjHamr-eb8cbd50439569c0c671376af6de2289987c8046.tar.xz
Rename the C version of test so the names don't conflict.
Diffstat (limited to 'ClientHamr/GuiLua/test_c.c')
-rw-r--r--ClientHamr/GuiLua/test_c.c22
1 files changed, 22 insertions, 0 deletions
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 @@
1/* Should be a Lua module, roughly the same as test.lua
2
3*/
4
5
6
7/* NOTES -
8
9From http://www.inf.puc-rio.br/~roberto/pil2/chapter15.pdf
10
11"Well-behaved C libraries should export one function called
12luaopen_modname, which is the function that require tries to call after
13linking the library. In Section 26.2 we will discuss how to write C
14libraries."
15
16The "modname" bit is replaced by the name of the module. Though if the
17module name includes a hyphen, the "require" function strips out the
18hyphen and the bit before it.
19
20Though it seems that chapter 26 is not in the same place?
21
22*/