mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
add obj_runFile() API
This commit is contained in:
parent
0e4d927a5d
commit
0670172efd
@ -2620,6 +2620,14 @@ int obj_runModule(PikaObj* self, char* module_name) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
PikaObj* obj_runFile(PikaObj* self, char* file_name) {
|
||||
return pikaVM_runFile(self, file_name);
|
||||
}
|
||||
|
||||
PikaObj* obj_runSingleFile(PikaObj* self, char* file_name) {
|
||||
return pikaVM_runSingleFile(self, file_name);
|
||||
}
|
||||
|
||||
int obj_importModule(PikaObj* self, char* module_name) {
|
||||
if (NULL == module_name) {
|
||||
return -1;
|
||||
|
@ -505,6 +505,8 @@ int obj_importModule(PikaObj* self, char* module_name);
|
||||
int32_t obj_newMetaObj(PikaObj* self, char* objName, NewFun newFunPtr);
|
||||
int32_t obj_newDirectObj(PikaObj* self, char* objName, NewFun newFunPtr);
|
||||
int obj_runModule(PikaObj* self, char* module_name);
|
||||
PikaObj* obj_runFile(PikaObj* self, char* file_name);
|
||||
PikaObj* obj_runSingleFile(PikaObj* self, char* file_name);
|
||||
char* obj_toStr(PikaObj* self);
|
||||
Arg* arg_newDirectObj(NewFun new_obj_fun);
|
||||
enum shellCTRL obj_runChar(PikaObj* self, char inputChar);
|
||||
|
Loading…
x
Reference in New Issue
Block a user