return status;
}
+ssize_t mlua_value(char *buf, ssize_t len,
+ const char *table, const char *key)
+{
+ ssize_t res;
+
+ lua_getglobal(L, table);
+ lua_pushstring(L, key);
+ lua_gettable(L, -2);
+ res = m_strcpy(buf, len, lua_tostring(L, -1));
+ lua_remove(L, -1);
+ lua_remove(L, -1);
+
+ return res;
+}
+