diff options
| author | Mike Pall <mike> | 2022-06-23 09:10:43 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2022-06-23 09:10:43 +0200 |
| commit | 4c2441c16ce3c4e312aaefecc6d40c4fe21de97c (patch) | |
| tree | 0ee5ad7a3246f9a620265de9c6998308cb44a09b /doc/ext_ffi_api.html | |
| parent | 0065cff7e0222c234b75a71e72b8883df5d000c2 (diff) | |
| parent | 2e98c3d0644fc0c265844908f43b7e4526dd819c (diff) | |
| download | luajit-4c2441c16ce3c4e312aaefecc6d40c4fe21de97c.tar.gz luajit-4c2441c16ce3c4e312aaefecc6d40c4fe21de97c.tar.bz2 luajit-4c2441c16ce3c4e312aaefecc6d40c4fe21de97c.zip | |
Merge branch 'master' into v2.1
Diffstat (limited to 'doc/ext_ffi_api.html')
| -rw-r--r-- | doc/ext_ffi_api.html | 10 |
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 | |||
| 121 | declaration may be omitted. | 121 | declaration may be omitted. |
| 122 | </p> | 122 | </p> |
| 123 | <p> | 123 | <p> |
| 124 | Please note that external symbols are only <em>declared</em>, but they | 124 | Please note, that external symbols are only <em>declared</em>, but they |
| 125 | are <em>not bound</em> to any specific address, yet. Binding is | 125 | are <em>not bound</em> to any specific address, yet. Binding is |
| 126 | achieved with C library namespaces (see below). | 126 | achieved with C 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;"> |
| 212 | Please note that an anonymous <tt>struct</tt> declaration implicitly | 212 | Please note, that an anonymous <tt>struct</tt> declaration implicitly |
| 213 | creates a new and distinguished ctype every time you use it for | 213 | creates 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, |
| 215 | especially if you create more than one cdata object. Different anonymous | 215 | especially 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 | |||
| 256 | contents of an <tt>__index</tt> table (if any) may be modified | 256 | contents of an <tt>__index</tt> table (if any) may be modified |
| 257 | afterwards. The associated metatable automatically applies to all uses | 257 | afterwards. The associated metatable automatically applies to all uses |
| 258 | of this type, no matter how the objects are created or where they | 258 | of this type, no matter how the objects are created or where they |
| 259 | originate from. Note that pre-defined operations on types have | 259 | originate from. Note that predefined operations on types have |
| 260 | precedence (e.g. declared field names cannot be overridden). | 260 | precedence (e.g. declared field names cannot be overridden). |
| 261 | </p> | 261 | </p> |
| 262 | <p> | 262 | <p> |
| 263 | All standard Lua metamethods are implemented. These are called directly, | 263 | All standard Lua metamethods are implemented. These are called directly, |
| 264 | without shortcuts and on any mix of types. For binary operations, the | 264 | without shortcuts, and on any mix of types. For binary operations, the |
| 265 | left operand is checked first for a valid ctype metamethod. The | 265 | left 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> |
| 267 | types and performs an implicit <a href="#ffi_gc"><tt>ffi.gc()</tt></a> | 267 | types 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> |
| 493 | Free the resources associated with a callback. The associated Lua | 493 | Free the resources associated with a callback. The associated Lua |
| 494 | function is unanchored and may be garbage collected. The callback | 494 | function is unanchored and may be garbage collected. The callback |
| 495 | function pointer is no longer valid and must not be called anymore | 495 | function 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 | ||
