Пример #1
0
// Concatenates the n values at the top of the stack, pops them, and
// leaves the result at the top. If n is 1, the result is the single
// value on the stack (that is, the function does nothing); if n is 0,
// the result is the empty string. Concatenation is performed following
// the usual semantics of Lua.
func (this *State) Concat(n int) {
	C.lua_concat(this.luastate, C.int(n))
}
Пример #2
0
Файл: lua.go Проект: szll/golua
// lua_concat
func (L *State) Concat(n int) {
	C.lua_concat(L.s, C.int(n))
}
Пример #3
0
// Concatenates the n values at the top of the stack, pops them, and
// leaves the result at the top. If n is 1, the result is the single
// value on the stack (that is, the function does nothing); if n is 0,
// the result is the empty string. Concatenation is performed following
// the usual semantics of Lua.
func (s *State) Concat(n int) {
	C.lua_concat(s.l, C.int(n))
}