aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-19 21:08:57 +1000
committerDavid Walter Seikel2014-03-19 21:08:57 +1000
commit47f6d4c230dd8f1eeea19df48f74cd649cdc039c (patch)
treebf63371201926a7761d2a41891aff543a7ec2f65 /ClientHamr/GuiLua/test.c
parentPrototype the skang package in Lua. I'll translate this into C later. (diff)
downloadSledjHamr-47f6d4c230dd8f1eeea19df48f74cd649cdc039c.zip
SledjHamr-47f6d4c230dd8f1eeea19df48f74cd649cdc039c.tar.gz
SledjHamr-47f6d4c230dd8f1eeea19df48f74cd649cdc039c.tar.bz2
SledjHamr-47f6d4c230dd8f1eeea19df48f74cd649cdc039c.tar.xz
Add some notes to test.c.
Diffstat (limited to '')
-rw-r--r--ClientHamr/GuiLua/test.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/test.c b/ClientHamr/GuiLua/test.c
index 12b5901..2aa2a8d 100644
--- a/ClientHamr/GuiLua/test.c
+++ b/ClientHamr/GuiLua/test.c
@@ -17,3 +17,22 @@ end)
17return result; 17return result;
18 18
19*/ 19*/
20
21
22
23/* NOTES -
24
25From http://www.inf.puc-rio.br/~roberto/pil2/chapter15.pdf
26
27"Well-behaved C libraries should export one function called
28luaopen_modname, which is the function that require tries to call after
29linking the library. In Section 26.2 we will discuss how to write C
30libraries."
31
32The "modname" bit is replaced by the name of the module. Though if the
33module name includes a hyphen, the "require" function strips out the
34hyphen and the bit before it.
35
36Though it seems that chapter 26 is not in the same place?
37
38*/ \ No newline at end of file