| 20 | extern "C" int hello(void); |
| 21 | |
| 22 | int hello() |
| 23 | { |
| 24 | printf("Hello world!\n"); |
| 25 | |
| 26 | void *module = dlopen(nullptr, 0x2); |
| 27 | |
| 28 | void *hndl = dlsym (module, "PyGILState_Ensure"); |
| 29 | if(hndl == nullptr){ |
| 30 | printf("nullptr\n"); |
| 31 | |
| 32 | }else{ |
| 33 | printf("Worked (found PyGILState_Ensure)!\n"); |
| 34 | } |
| 35 | |
| 36 | printf("%d", GetPythonVersion(module)); |
| 37 | |
| 38 | |
| 39 | return 2; |
| 40 | } |
| 41 | |
| 42 | |
| 43 | // Internal function to keep on the tracing |
nothing calls this directly
no test coverage detected