aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Pall <mike>2017-01-17 11:37:28 +0100
committerMike Pall <mike>2017-01-17 11:37:28 +0100
commitc1981676907cedde9ffe2bbdfb28d2f786ff69d9 (patch)
tree08fec89b79040b758cc4473163a5e40dbe355799 /doc
parented4ce98ac1471a1d8a4f50486adb29771dcab9f2 (diff)
downloadluajit-c1981676907cedde9ffe2bbdfb28d2f786ff69d9.tar.gz
luajit-c1981676907cedde9ffe2bbdfb28d2f786ff69d9.tar.bz2
luajit-c1981676907cedde9ffe2bbdfb28d2f786ff69d9.zip
Add some more extensions from Lua 5.2/5.3.
Contributed by François Perrad.
Diffstat (limited to 'doc')
-rw-r--r--doc/extensions.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/extensions.html b/doc/extensions.html
index 70dc6995..b048f137 100644
--- a/doc/extensions.html
+++ b/doc/extensions.html
@@ -303,6 +303,7 @@ enabled:
303<li><tt>os.exit(status|true|false [,close])</tt>.</li> 303<li><tt>os.exit(status|true|false [,close])</tt>.</li>
304<li><tt>package.searchpath(name, path [, sep [, rep]])</tt>.</li> 304<li><tt>package.searchpath(name, path [, sep [, rep]])</tt>.</li>
305<li><tt>package.loadlib(name, "*")</tt>.</li> 305<li><tt>package.loadlib(name, "*")</tt>.</li>
306<li><tt>package.searchers</tt>.</li>
306<li><tt>debug.getinfo()</tt> returns <tt>nparams</tt> and <tt>isvararg</tt> 307<li><tt>debug.getinfo()</tt> returns <tt>nparams</tt> and <tt>isvararg</tt>
307for option <tt>"u"</tt>.</li> 308for option <tt>"u"</tt>.</li>
308<li><tt>debug.getlocal()</tt> accepts function instead of level.</li> 309<li><tt>debug.getlocal()</tt> accepts function instead of level.</li>
@@ -350,6 +351,9 @@ LuaJIT supports some extensions from Lua&nbsp;5.3:
350<ul> 351<ul>
351<li>Unicode escape <tt>'\u{XX...}'</tt> embeds the UTF-8 encoding in string literals.</li> 352<li>Unicode escape <tt>'\u{XX...}'</tt> embeds the UTF-8 encoding in string literals.</li>
352<li>The argument table <tt>arg</tt> can be read (and modified) by <tt>LUA_INIT</tt> and <tt>-e</tt> chunks.</li> 353<li>The argument table <tt>arg</tt> can be read (and modified) by <tt>LUA_INIT</tt> and <tt>-e</tt> chunks.</li>
354<li><tt>io.read()</tt> and <tt>file:read()</tt> accept formats with or without a leading <tt>*</tt>.</li>
355<li><tt>table.move(a1, f, e, t [,a2])</tt>.</li>
356<li><tt>coroutine.isyieldable()</tt>.</li>
353</ul> 357</ul>
354 358
355<h2 id="exceptions">C++ Exception Interoperability</h2> 359<h2 id="exceptions">C++ Exception Interoperability</h2>