mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-02 17:28:30 +00:00
Improve redbean
- Improve serialization - Add Benchmark() API to redbean - Refactor UNIX API to be assert() friendly - Make the redbean Lua REPL print data structures - Fix recent regressions in linenoise reverse search - Add -i flag so redbean can be a language interpreter
This commit is contained in:
parent
2046c0d2ae
commit
451e3f73d9
74 changed files with 1781 additions and 1024 deletions
|
@ -1936,7 +1936,7 @@ static const luaL_Reg sqlitelib[] = {
|
|||
|
||||
static void create_meta(lua_State *L, const char *name, const luaL_Reg *lib) {
|
||||
luaL_newmetatable(L, name);
|
||||
lua_pushstring(L, "__index");
|
||||
lua_pushliteral(L, "__index");
|
||||
lua_pushvalue(L, -2); /* push metatable */
|
||||
lua_rawset(L, -3); /* metatable.__index = metatable */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue