From 2d682b24d8a6d8bb164e84a4cd455c4fa80be265 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 28 May 2025 17:38:24 +0800 Subject: [PATCH] Update main.c --- src2/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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__ ") ");