예제 #1
0
파일: lua.go 프로젝트: szll/golua
// lua_typename
func (L *State) Typename(tp int) string {
	return C.GoString(C.lua_typename(L.s, C.int(tp)))
}
예제 #2
0
파일: lauxlib.go 프로젝트: 1lann/golua
// luaL_typename
func (L *State) LTypename(index int) string {
	return C.GoString(C.lua_typename(L.s, C.lua_type(L.s, C.int(index))))
}
예제 #3
0
파일: state.go 프로젝트: halturin/luajit
// Returns the name of the type encoded by the value tp, which must be one
// the values returned by Type.
func (s *State) Typename(tp int) string {
	return C.GoString(C.lua_typename(s.l, C.int(tp)))
}