.. _program_listing_file__tmp_ws_src_eigenpy_include_eigenpy_utils_python-compat.hpp: Program Listing for File python-compat.hpp ========================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/eigenpy/include/eigenpy/utils/python-compat.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // // Copyright (c) 2024 INRIA // // #ifndef __eigenpy_utils_python_compat_hpp__ #define __eigenpy_utils_python_compat_hpp__ #if PY_MAJOR_VERSION >= 3 #define PyInt_Check PyLong_Check #define PyStr_Check PyUnicode_Check #define PyStr_FromString PyUnicode_FromString #else #define PyStr_Check PyString_Check #define PyStr_FromString PyString_FromString #endif #endif // ifndef __eigenpy_utils_python_compat_hpp__