| 221 | /* protobuf util routines */ |
| 222 | |
| 223 | static void lpb_addlength(lua_State *L, pb_Buffer *b, size_t len) |
| 224 | { if (pb_addlength(b, len) == 0) luaL_error(L, "encode bytes fail"); } |
| 225 | |
| 226 | static int typeerror(lua_State *L, int idx, const char *type) { |
| 227 | lua_pushfstring(L, "%s expected, got %s", type, luaL_typename(L, idx)); |
no test coverage detected