diff options
-rw-r--r-- | ClientHamr/GuiLua/test.c | 19 |
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) | |||
17 | return result; | 17 | return result; |
18 | 18 | ||
19 | */ | 19 | */ |
20 | |||
21 | |||
22 | |||
23 | /* NOTES - | ||
24 | |||
25 | From http://www.inf.puc-rio.br/~roberto/pil2/chapter15.pdf | ||
26 | |||
27 | "Well-behaved C libraries should export one function called | ||
28 | luaopen_modname, which is the function that require tries to call after | ||
29 | linking the library. In Section 26.2 we will discuss how to write C | ||
30 | libraries." | ||
31 | |||
32 | The "modname" bit is replaced by the name of the module. Though if the | ||
33 | module name includes a hyphen, the "require" function strips out the | ||
34 | hyphen and the bit before it. | ||
35 | |||
36 | Though it seems that chapter 26 is not in the same place? | ||
37 | |||
38 | */ \ No newline at end of file | ||