1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /*
- * Copyright (C) 2020 Weber Yann
- *
- * This file is part of pyrpn.
- *
- * pyrpn is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * any later version.
- *
- * pyrpn is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with pyrpn. If not, see <http://www.gnu.org/licenses/>.
- */
- #ifndef __RPN_CONFIG__
- #define __RPN_CONFIG__
-
- /**@file config.h
- * @brief Global definition for all C files
- */
-
- /**@brief The programms is under GPL */
- #define _GNU_SOURCE
-
- /**@brief Allow fancy method declaration by indicating arguments list
- * explicitly
- * @param name char* The method name
- * @param callback The C function to call
- * @param flags int Python flags for method call options
- * @param header char* List of arguments
- * @param docstring char* The method documentation
- */
- #define PYRPN_method(name, callback, flags, header, docstring) \
- {name, (PyCFunction)callback, flags, \
- PyDoc_STR(name "("header ")\n--\n\n" docstring)}
-
- #endif
|