static inline void set_c_parameters(PyObject *level_or_option, ZSTD_CCtx *cctx) { // ... if (PyLong_Check(level_or_option)) { const long level = PyLong_AsLong(level_or_option); if (level == -1 && PyErr_Occurred()) { return; } ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, level); return; } // ... }