Golang C.lua_concat类(方法)实例源码

下面列出了Golang C.lua_concat 类(方法)源码代码实例,从而了解它的用法。

作者:rdlaitil    项目:lea   
// 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))
}

作者:szl    项目:golu   
// lua_concat
func (L *State) Concat(n int) {
	C.lua_concat(L.s, C.int(n))
}

作者:halturi    项目:luaji   
// 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))
}


问题


面经


文章

微信
公众号

扫码关注公众号