-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlua_concat.3
38 lines (38 loc) · 878 Bytes
/
lua_concat.3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.Dd $Mdocdate: July 14 2022 $
.Dt LUA_CONCAT 3
.Os
.Sh NAME
.Nm lua_concat
.Nd concatenates the values at the top of the stack, pops them, and leaves the
result at the top, function indicator
.Bq -n, +1, e
.Sh SYNOPSIS
.In lua.h
.Ft void
.Fn lua_concat "lua_State *L" "int n"
.Sh DESCRIPTION
.Fn lua_concat
concatenates the
.Fa n
values at the top of the stack, pops them, and leaves the
result at the top.
Concatenation is performed following the
usual semantics of Lua.
.Sh RETURN VALUES
If
.Fa n
is 1, the result is the single value on the stack (that
is, the function does nothing); if
.Fa n
is 0, the result is the empty string.
.Sh SEE ALSO
.Rs
.%A Roberto Ierusalimschy
.%A Luiz Henrique de Figueiredo
.%A Waldemar Celes
.%T Lua 5.1 Reference Manual
.Re
.Sh HISTORY
The
.Fn lua_concat
manual page is based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.