| 2068 | } |
| 2069 | |
| 2070 | static void init_blob(Lua L) |
| 2071 | { |
| 2072 | luaL_newmetatable(L, dbtypes.blob); |
| 2073 | setup_method(L, "__index", l_blob_index); |
| 2074 | setup_method(L, "__newindex", l_blob_newindex); |
| 2075 | setup_method(L, "__tostring", l_blob_tostring); |
| 2076 | setup_method(L, "__eq", l_blob_eq); |
| 2077 | setup_method(L, "__lt", l_blob_lt); |
| 2078 | setup_method(L, "__le", l_blob_le); |
| 2079 | setup_method(L, "__cast", l_column_cast); |
| 2080 | setup_method(L, "__type", l_typed_assignment); |
| 2081 | setup_method(L, "__gc", l_blob_free); |
| 2082 | setup_method(L, "__len", l_blob_length); |
| 2083 | |
| 2084 | lua_pop(L, 1); |
| 2085 | } |
| 2086 | |
| 2087 | static int l_errfunc(lua_State *lua) { |
| 2088 | logmsg(LOGMSG_DEBUG, "%s\n", lua_tostring(lua, -1)); |
no test coverage detected