mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
Update main.c
This commit is contained in:
parent
5336054b61
commit
2d682b24d8
@ -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__ ") ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user