aboutsummaryrefslogtreecommitdiff
path: root/doc/ext_ffi_api.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ext_ffi_api.html')
-rw-r--r--doc/ext_ffi_api.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/ext_ffi_api.html b/doc/ext_ffi_api.html
index 0b0e31f6..b8da1c95 100644
--- a/doc/ext_ffi_api.html
+++ b/doc/ext_ffi_api.html
@@ -121,7 +121,7 @@ separated by semicolons. The trailing semicolon for a single
121declaration may be omitted. 121declaration may be omitted.
122</p> 122</p>
123<p> 123<p>
124Please note that external symbols are only <em>declared</em>, but they 124Please note, that external symbols are only <em>declared</em>, but they
125are <em>not bound</em> to any specific address, yet. Binding is 125are <em>not bound</em> to any specific address, yet. Binding is
126achieved with C&nbsp;library namespaces (see below). 126achieved with C&nbsp;library namespaces (see below).
127</p> 127</p>
@@ -209,7 +209,7 @@ parse the cdecl only once and get its ctype with
209<tt>ffi.typeof()</tt>. Then use the ctype as a constructor repeatedly. 209<tt>ffi.typeof()</tt>. Then use the ctype as a constructor repeatedly.
210</p> 210</p>
211<p style="font-size: 8pt;"> 211<p style="font-size: 8pt;">
212Please note that an anonymous <tt>struct</tt> declaration implicitly 212Please note, that an anonymous <tt>struct</tt> declaration implicitly
213creates a new and distinguished ctype every time you use it for 213creates a new and distinguished ctype every time you use it for
214<tt>ffi.new()</tt>. This is probably <b>not</b> what you want, 214<tt>ffi.new()</tt>. This is probably <b>not</b> what you want,
215especially if you create more than one cdata object. Different anonymous 215especially if you create more than one cdata object. Different anonymous
@@ -256,12 +256,12 @@ afterwards. Neither the contents of the <tt>metatable</tt> nor the
256contents of an <tt>__index</tt> table (if any) may be modified 256contents of an <tt>__index</tt> table (if any) may be modified
257afterwards. The associated metatable automatically applies to all uses 257afterwards. The associated metatable automatically applies to all uses
258of this type, no matter how the objects are created or where they 258of this type, no matter how the objects are created or where they
259originate from. Note that pre-defined operations on types have 259originate from. Note that predefined operations on types have
260precedence (e.g. declared field names cannot be overridden). 260precedence (e.g. declared field names cannot be overridden).
261</p> 261</p>
262<p> 262<p>
263All standard Lua metamethods are implemented. These are called directly, 263All standard Lua metamethods are implemented. These are called directly,
264without shortcuts and on any mix of types. For binary operations, the 264without shortcuts, and on any mix of types. For binary operations, the
265left operand is checked first for a valid ctype metamethod. The 265left operand is checked first for a valid ctype metamethod. The
266<tt>__gc</tt> metamethod only applies to <tt>struct</tt>/<tt>union</tt> 266<tt>__gc</tt> metamethod only applies to <tt>struct</tt>/<tt>union</tt>
267types and performs an implicit <a href="#ffi_gc"><tt>ffi.gc()</tt></a> 267types and performs an implicit <a href="#ffi_gc"><tt>ffi.gc()</tt></a>
@@ -492,7 +492,7 @@ have some extra methods:
492<p> 492<p>
493Free the resources associated with a callback. The associated Lua 493Free the resources associated with a callback. The associated Lua
494function is unanchored and may be garbage collected. The callback 494function is unanchored and may be garbage collected. The callback
495function pointer is no longer valid and must not be called anymore 495function pointer is no longer valid and must not be called again
496(it may be reused by a subsequently created callback). 496(it may be reused by a subsequently created callback).
497</p> 497</p>
498 498