diff options
author | Mike Pall <mike> | 2012-04-19 15:19:41 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-04-19 15:19:41 +0200 |
commit | 543963146041b8383171fa267fab351acdf50d35 (patch) | |
tree | deb8221254645339087a50d54c20f944aad55fba /doc/ext_ffi_tutorial.html | |
parent | 633b248109fb893965cafc44e9801fde4d284474 (diff) | |
download | luajit-543963146041b8383171fa267fab351acdf50d35.tar.gz luajit-543963146041b8383171fa267fab351acdf50d35.tar.bz2 luajit-543963146041b8383171fa267fab351acdf50d35.zip |
FFI: Clarify docs wrt. 'local ffi = ...' and the interactive prompt.
Diffstat (limited to 'doc/ext_ffi_tutorial.html')
-rw-r--r-- | doc/ext_ffi_tutorial.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/ext_ffi_tutorial.html b/doc/ext_ffi_tutorial.html index 802a2041..533273f7 100644 --- a/doc/ext_ffi_tutorial.html +++ b/doc/ext_ffi_tutorial.html | |||
@@ -93,6 +93,11 @@ Please note this doesn't define an <tt>ffi</tt> variable in the table | |||
93 | of globals — you really need to use the local variable. The | 93 | of globals — you really need to use the local variable. The |
94 | <tt>require</tt> function ensures the library is only loaded once. | 94 | <tt>require</tt> function ensures the library is only loaded once. |
95 | </p> | 95 | </p> |
96 | <p style="font-size: 8pt;"> | ||
97 | Note: If you want to experiment with the FFI from the interactive prompt | ||
98 | of the command line executable, omit the <tt>local</tt>, as it doesn't | ||
99 | preserve local variables across lines. | ||
100 | </p> | ||
96 | 101 | ||
97 | <h2 id="sleep">Accessing Standard System Functions</h2> | 102 | <h2 id="sleep">Accessing Standard System Functions</h2> |
98 | <p> | 103 | <p> |