MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / hello

Function hello

pydevd_attach_to_process/linux_and_mac/attach.cpp:22–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20extern "C" int hello(void);
21
22int 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

Callers

nothing calls this directly

Calls 1

GetPythonVersionFunction · 0.85

Tested by

no test coverage detected