per page, with , order by , clip by
Results of 1 - 2 of about 2 for ifndef (0.002 sec.)
API と ABI のバージョニング 11228
API と ABI のバージョニング ビルド時のバージョン定数 CPython は以下のマクロでバージョン番号を公開しています。 これらはコードの ビルド時 のバージョンに対応します。 実行時 のバージョンについては Py_Version を参照してください。 バージョン間の ... 01a2 3.10.0 (3, 10, 0, 0xF, 0) 0x030a00f0 引数の範囲外のビットは無視します。 つまり、このマクロは次のように定義できます。 #ifndef Py_PACK_FULL_VERSION #define Py_PACK_FULL_VERSION(X, Y, Z, LEVEL, SERIAL) ( \ (((X) & 0xff) << 24) | \ (((Y) & 0xff) << 16 ...
https://man.mtool.work/python/3.14/c-api/apiabiversion.html
1. Extending Python with C or C++ 7485
1. Extending Python with C or C++ It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can't be done directly in Python: they can implement new built-in objec ... isappear when PyInit_spam() terminates! からくりの大部分はヘッダファイル spammodule.h 内にあり、以下のようになっています: #ifndef Py_SPAMMODULE_H #define Py_SPAMMODULE_H #ifdef __cplusplus extern "C" { #endif /* spammodule のヘッダーファイル */ /* C AP ...
https://man.mtool.work/python/3.14/extending/extending.html
PREV 1 NEXT