mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
[ci skip] doc fixes
This commit is contained in:
parent
fb276676d1
commit
fbdc5d9798
@ -107,6 +107,7 @@ enumerations
|
|||||||
new_index,
|
new_index,
|
||||||
mode,
|
mode,
|
||||||
call,
|
call,
|
||||||
|
call_function = call,
|
||||||
metatable,
|
metatable,
|
||||||
to_string,
|
to_string,
|
||||||
length,
|
length,
|
||||||
@ -123,14 +124,24 @@ enumerations
|
|||||||
less_than,
|
less_than,
|
||||||
less_than_or_equal_to,
|
less_than_or_equal_to,
|
||||||
garbage_collect,
|
garbage_collect,
|
||||||
call_function = call,
|
floor_division,
|
||||||
pairs
|
bitwise_left_shift,
|
||||||
|
bitwise_right_shift,
|
||||||
|
bitwise_not,
|
||||||
|
bitwise_and,
|
||||||
|
bitwise_or,
|
||||||
|
bitwise_xor,
|
||||||
|
pairs,
|
||||||
|
ipairs,
|
||||||
|
next,
|
||||||
|
type,
|
||||||
|
type_info,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef meta_function meta_method;
|
typedef meta_function meta_method;
|
||||||
|
|
||||||
|
|
||||||
Use this enumeration to specify names in a manner friendlier than memorizing the special lua metamethod names for each of these. Each binds to a specific operation indicated by the descriptive name of the enum. You can read more about `the metamethods in the Lua manual`_ and learn about how they work and are supposed to be implemented there. Each of the names here (except for the ones used as shortcuts to other names like ``meta_function::call_function`` and ``meta_function::involution`` and not including ``construct``, which just maps to the name ``new``) link directly to the Lua name for the operation. ``meta_function::pairs`` is only available in Lua 5.2 and above (does not include LuaJIT or Lua 5.1).
|
Use this enumeration to specify names in a manner friendlier than memorizing the special lua metamethod names for each of these. Each binds to a specific operation indicated by the descriptive name of the enum. You can read more about `the metamethods in the Lua manual`_ and learn about how they work and are supposed to be implemented there. Each of the names here (except for the ones used as shortcuts to other names like ``meta_function::call_function`` and ``meta_function::involution`` and not including ``construct``, which just maps to the name ``new``) link directly to the Lua name for the operation. ``meta_function::pairs`` is only available in Lua 5.2 and above (does not include LuaJIT or Lua 5.1) and ``meta_function::ipairs`` is only available in Lua 5.2 exactly (disregarding compatibiltiy flags).
|
||||||
|
|
||||||
members
|
members
|
||||||
-------
|
-------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user