@@ -1203,3 +1203,107 @@ static PyObject *
12031203test_Py_buffer_converter_impl(PyObject *module, Py_buffer *a, Py_buffer *b,
12041204 Py_buffer *c, Py_buffer *d, Py_buffer *e)
12051205/*[clinic end generated code: output=92937215f10bc937 input=6a9da0f56f9525fd]*/
1206+
1207+ /*[clinic input]
1208+ output push
1209+ output preset buffer
1210+ [clinic start generated code]*/
1211+ /*[clinic end generated code: output=da39a3ee5e6b4b0d input=5bff3376ee0df0b5]*/
1212+
1213+ #ifdef CONDITION_A
1214+ /*[clinic input]
1215+ test_preprocessor_guarded_condition_a
1216+ [clinic start generated code]*/
1217+
1218+ static PyObject *
1219+ test_preprocessor_guarded_condition_a_impl(PyObject *module)
1220+ /*[clinic end generated code: output=ad012af18085add6 input=8edb8706a98cda7e]*/
1221+ #elif CONDITION_B
1222+ /*[clinic input]
1223+ test_preprocessor_guarded_elif_condition_b
1224+ [clinic start generated code]*/
1225+
1226+ static PyObject *
1227+ test_preprocessor_guarded_elif_condition_b_impl(PyObject *module)
1228+ /*[clinic end generated code: output=615f2dee82b138d1 input=53777cebbf7fee32]*/
1229+ #else
1230+ /*[clinic input]
1231+ test_preprocessor_guarded_else
1232+ [clinic start generated code]*/
1233+
1234+ static PyObject *
1235+ test_preprocessor_guarded_else_impl(PyObject *module)
1236+ /*[clinic end generated code: output=13af7670aac51b12 input=6657ab31d74c29fc]*/
1237+ #endif
1238+
1239+ /*[clinic input]
1240+ dump buffer
1241+ output pop
1242+ [clinic start generated code]*/
1243+
1244+ #if defined(CONDITION_A)
1245+
1246+ PyDoc_STRVAR(test_preprocessor_guarded_condition_a__doc__,
1247+ "test_preprocessor_guarded_condition_a($module, /)\n"
1248+ "--\n"
1249+ "\n");
1250+
1251+ #define TEST_PREPROCESSOR_GUARDED_CONDITION_A_METHODDEF \
1252+ {"test_preprocessor_guarded_condition_a", (PyCFunction)test_preprocessor_guarded_condition_a, METH_NOARGS, test_preprocessor_guarded_condition_a__doc__},
1253+
1254+ static PyObject *
1255+ test_preprocessor_guarded_condition_a(PyObject *module, PyObject *Py_UNUSED(ignored))
1256+ {
1257+ return test_preprocessor_guarded_condition_a_impl(module);
1258+ }
1259+
1260+ #endif /* defined(CONDITION_A) */
1261+
1262+ #if !defined(CONDITION_A) && (CONDITION_B)
1263+
1264+ PyDoc_STRVAR(test_preprocessor_guarded_elif_condition_b__doc__,
1265+ "test_preprocessor_guarded_elif_condition_b($module, /)\n"
1266+ "--\n"
1267+ "\n");
1268+
1269+ #define TEST_PREPROCESSOR_GUARDED_ELIF_CONDITION_B_METHODDEF \
1270+ {"test_preprocessor_guarded_elif_condition_b", (PyCFunction)test_preprocessor_guarded_elif_condition_b, METH_NOARGS, test_preprocessor_guarded_elif_condition_b__doc__},
1271+
1272+ static PyObject *
1273+ test_preprocessor_guarded_elif_condition_b(PyObject *module, PyObject *Py_UNUSED(ignored))
1274+ {
1275+ return test_preprocessor_guarded_elif_condition_b_impl(module);
1276+ }
1277+
1278+ #endif /* !defined(CONDITION_A) && (CONDITION_B) */
1279+
1280+ #if !defined(CONDITION_A) && !(CONDITION_B)
1281+
1282+ PyDoc_STRVAR(test_preprocessor_guarded_else__doc__,
1283+ "test_preprocessor_guarded_else($module, /)\n"
1284+ "--\n"
1285+ "\n");
1286+
1287+ #define TEST_PREPROCESSOR_GUARDED_ELSE_METHODDEF \
1288+ {"test_preprocessor_guarded_else", (PyCFunction)test_preprocessor_guarded_else, METH_NOARGS, test_preprocessor_guarded_else__doc__},
1289+
1290+ static PyObject *
1291+ test_preprocessor_guarded_else(PyObject *module, PyObject *Py_UNUSED(ignored))
1292+ {
1293+ return test_preprocessor_guarded_else_impl(module);
1294+ }
1295+
1296+ #endif /* !defined(CONDITION_A) && !(CONDITION_B) */
1297+
1298+ #ifndef TEST_PREPROCESSOR_GUARDED_CONDITION_A_METHODDEF
1299+ #define TEST_PREPROCESSOR_GUARDED_CONDITION_A_METHODDEF
1300+ #endif /* !defined(TEST_PREPROCESSOR_GUARDED_CONDITION_A_METHODDEF) */
1301+
1302+ #ifndef TEST_PREPROCESSOR_GUARDED_ELIF_CONDITION_B_METHODDEF
1303+ #define TEST_PREPROCESSOR_GUARDED_ELIF_CONDITION_B_METHODDEF
1304+ #endif /* !defined(TEST_PREPROCESSOR_GUARDED_ELIF_CONDITION_B_METHODDEF) */
1305+
1306+ #ifndef TEST_PREPROCESSOR_GUARDED_ELSE_METHODDEF
1307+ #define TEST_PREPROCESSOR_GUARDED_ELSE_METHODDEF
1308+ #endif /* !defined(TEST_PREPROCESSOR_GUARDED_ELSE_METHODDEF) */
1309+ /*[clinic end generated code: output=3804bb18d454038c input=3fc80c9989d2f2e1]*/
0 commit comments