Implement dual compilation with custom defines
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* parser.c
|
||||
* Copyright (C) 2016 Kovid Goyal <kovid at kovidgoyal.net>
|
||||
*
|
||||
* Distributed under terms of the GPL3 license.
|
||||
*/
|
||||
|
||||
#include "data-types.h"
|
||||
|
||||
|
||||
PyObject*
|
||||
#ifdef DUMP_COMMANDS
|
||||
parse_bytes_dump(PyObject UNUSED *self, PyObject *args) {
|
||||
#else
|
||||
parse_bytes(PyObject UNUSED *self, PyObject *args) {
|
||||
#endif
|
||||
Py_buffer pybuf;
|
||||
if (!PyArg_ParseTuple(args, "y*", &pybuf)) return NULL;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
Reference in New Issue
Block a user