| 670 | /* protobuf encode routine */ |
| 671 | |
| 672 | static int lpb_typefmt(int fmt) { |
| 673 | switch (fmt) { |
| 674 | #define X(name,type,fmt) case fmt: return PB_T##name; |
| 675 | PB_TYPES(X) |
| 676 | #undef X |
| 677 | } |
| 678 | return -1; |
| 679 | } |
| 680 | |
| 681 | static int lpb_packfmt(lua_State *L, int idx, pb_Buffer *b, const char **pfmt, int level) { |
| 682 | const char *fmt = *pfmt; |
no outgoing calls
no test coverage detected