MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / init_blob

Function init_blob

lua/ltypes.c:2070–2085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2068}
2069
2070static 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
2087static int l_errfunc(lua_State *lua) {
2088 logmsg(LOGMSG_DEBUG, "%s\n", lua_tostring(lua, -1));

Callers 1

init_dbtypesFunction · 0.85

Calls 1

luaL_newmetatableFunction · 0.85

Tested by

no test coverage detected