protobuf-c: make it a bit harder to generate output to stdio
libraries should never generate output on their own to stdout/stderr. remove the PRINT_UNPACK_ERRORS macro and rename UNPACK_ERROR to PROTOBUF_C_UNPACK_ERROR. the error strings are left in but compiled out by default. they could theoretically be re-enabled for a debugging session by changing the PROTOBUF_C_UNPACK_ERROR macro to something like: #define PROTOBUF_C_UNPACK_ERROR(...) do { fprintf(stderr, __VA_ARGS__); fputc('\n', stderr); } while (0)
Showing
Please register or sign in to comment