Implement dual compilation with custom defines

This commit is contained in:
Kovid Goyal
2016-11-12 11:41:40 +05:30
parent c8a71ef5f8
commit 939ffe191f
3 changed files with 39 additions and 1 deletions
+20
View File
@@ -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;
}