Searched refs:_Py_STATIC_CAST (Results 1 - 3 of 3) sorted by relevance
/third_party/python/Include/cpython/ |
H A D | unicodeobject.h | 323 return _Py_STATIC_CAST(void*, (_PyASCIIObject_CAST(op) + 1)); in _PyUnicode_COMPACT_DATA() 325 return _Py_STATIC_CAST(void*, (_PyCompactUnicodeObject_CAST(op) + 1)); in _PyUnicode_COMPACT_DATA() 351 #define PyUnicode_1BYTE_DATA(op) _Py_STATIC_CAST(Py_UCS1*, PyUnicode_DATA(op)) 352 #define PyUnicode_2BYTE_DATA(op) _Py_STATIC_CAST(Py_UCS2*, PyUnicode_DATA(op)) 353 #define PyUnicode_4BYTE_DATA(op) _Py_STATIC_CAST(Py_UCS4*, PyUnicode_DATA(op)) 376 _Py_STATIC_CAST(Py_UCS1*, data)[index] = _Py_STATIC_CAST(Py_UCS1, value); in PyUnicode_WRITE() 380 _Py_STATIC_CAST(Py_UCS2*, data)[index] = _Py_STATIC_CAST(Py_UCS2, value); in PyUnicode_WRITE() 385 _Py_STATIC_CAST(Py_UCS in PyUnicode_WRITE() [all...] |
H A D | abstract.h | 54 (_Py_STATIC_CAST(size_t, 1) << (8 * sizeof(size_t) - 1))
|
/third_party/python/Include/ |
H A D | pyport.h | 19 # define _Py_STATIC_CAST(type, expr) static_cast<type>(expr) macro 21 # define _Py_STATIC_CAST(type, expr) ((type)(expr)) macro 319 (assert(_Py_STATIC_CAST(WIDE, _Py_STATIC_CAST(NARROW, (VALUE))) == (VALUE)), \ 320 _Py_STATIC_CAST(NARROW, (VALUE))) 322 # define Py_SAFE_DOWNCAST(VALUE, WIDE, NARROW) _Py_STATIC_CAST(NARROW, (VALUE))
|
Completed in 3 milliseconds