Update main.c

This commit is contained in:
blueloveTH 2025-05-28 17:38:24 +08:00
parent 5336054b61
commit 2d682b24d8

View File

@ -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__ ") ");