mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
add __platform_error_handle
This commit is contained in:
parent
917f5d496f
commit
b6ed90b8f8
@ -38,6 +38,9 @@ PIKA_WEAK void __platform_enable_irq_handle(void) {
|
||||
PIKA_WEAK void* __platform_malloc(size_t size) {
|
||||
return malloc(size);
|
||||
}
|
||||
PIKA_WEAK void __platform_error_handle(void){
|
||||
return;
|
||||
}
|
||||
PIKA_WEAK void __platform_free(void* ptr) {
|
||||
free(ptr);
|
||||
}
|
||||
|
@ -104,3 +104,6 @@ char __platform_getchar(void);
|
||||
FILE* __platform_fopen(const char* filename, const char* modes);
|
||||
int __platform_fclose(FILE* stream);
|
||||
size_t __platform_fwrite(const void* ptr, size_t size, size_t n, FILE* stream);
|
||||
|
||||
/* error */
|
||||
void __platform_error_handle(void);
|
||||
|
@ -1157,6 +1157,7 @@ VMParameters* pikaVM_runByteCodeWithState(PikaObj* self,
|
||||
__platform_printf("[info] input commond: \r\n");
|
||||
instructUnit_printWithConst(this_ins_unit,
|
||||
&(bytecode_frame->const_pool));
|
||||
__platform_error_handle();
|
||||
}
|
||||
}
|
||||
__clearInvokeQueues(locals);
|
||||
|
Loading…
x
Reference in New Issue
Block a user