File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
pyperformance/data-files/benchmarks/bm_ctypes Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 11#include <Python.h>
22
3+ #if defined(_WIN32 ) || defined(__CYGWIN__ )
4+ #define EXPORTED_SYMBOL __declspec(dllexport)
5+ #else
6+ #define EXPORTED_SYMBOL
7+ #endif
38
4- Py_EXPORTED_SYMBOL
9+
10+ EXPORTED_SYMBOL
511void void_foo_void (void ) {
612
713}
814
9- Py_EXPORTED_SYMBOL
15+ EXPORTED_SYMBOL
1016int int_foo_int (int a ) {
1117 return a + 1 ;
1218}
1319
14- Py_EXPORTED_SYMBOL
20+ EXPORTED_SYMBOL
1521void void_foo_int (int a ) {
1622
1723}
1824
19- Py_EXPORTED_SYMBOL
25+ EXPORTED_SYMBOL
2026void void_foo_int_int (int a , int b ) {
2127
2228}
2329
24- Py_EXPORTED_SYMBOL
30+ EXPORTED_SYMBOL
2531void void_foo_int_int_int (int a , int b , int c ) {
2632
2733}
2834
29- Py_EXPORTED_SYMBOL
35+ EXPORTED_SYMBOL
3036void void_foo_int_int_int_int (int a , int b , int c , int d ) {
3137
3238}
3339
34- Py_EXPORTED_SYMBOL
40+ EXPORTED_SYMBOL
3541void void_foo_constchar (const char * str ) {
3642
3743}
You can’t perform that action at this time.
0 commit comments