for ( i = 1; i < vec_len; ++i){
lua_pushinteger(L, i);
lua_gettable(L, 1);
- str = lua_tolstring(L, 3, NULL);
+ str = luaL_checklstring(L, 3, NULL);
luaL_addstring(&buf, str);
lua_pop(L, 1);
luaL_addstring(&buf, sep);
/* add tail of string list */
lua_pushinteger(L, i);
lua_gettable(L, 1);
- str = lua_tolstring(L, 3, NULL);
+ str = luaL_checklstring(L, 3, NULL);
luaL_addstring(&buf, str);
lua_pop(L, 1);
/* remove the args. */
end
end
+-- print(ime.join_string({nil, " "}, ","));
print("test finished...");