diff --git a/src2/main.c b/src2/main.c index 8a4da9e7..357ebe2e 100644 --- a/src2/main.c +++ b/src2/main.c @@ -26,7 +26,7 @@ static char* read_file(const char* path) { return buffer; } -void LineProfiler__tracefunc(py_Frame* frame, enum py_TraceEvent event); +// void LineProfiler__tracefunc(py_Frame* frame, enum py_TraceEvent event); static char buf[2048]; int main(int argc, char** argv) { @@ -53,7 +53,8 @@ int main(int argc, char** argv) { py_initialize(); py_sys_setargv(argc, argv); - if(profile) py_sys_settrace(LineProfiler__tracefunc, true); + assert(!profile); // not implemented yet + // if(profile) py_sys_settrace(LineProfiler__tracefunc, true); if(filename == NULL) { printf("pocketpy " PK_VERSION " (" __DATE__ ", " __TIME__ ") ");