mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
format
This commit is contained in:
parent
461164ec81
commit
1563b94d00
@ -1,7 +1,7 @@
|
||||
#include "PikaDebug_Debuger.h"
|
||||
|
||||
extern PikaObj* __pikaMain;
|
||||
static enum shell_state __obj_shellLineHandler_obj_run(PikaObj* self,
|
||||
static enum shell_state __obj_shellLineHandler_debuger(PikaObj* self,
|
||||
char* input_line) {
|
||||
/* continue */
|
||||
if (strEqu("c", input_line)) {
|
||||
@ -19,5 +19,5 @@ void PikaDebug_Debuger_set_trace(PikaObj* self) {
|
||||
struct shell_config cfg = {
|
||||
.prefix = "(pika-debug) ",
|
||||
};
|
||||
obj_shellLineProcess(__pikaMain, __obj_shellLineHandler_obj_run, &cfg);
|
||||
obj_shellLineProcess(__pikaMain, __obj_shellLineHandler_debuger, &cfg);
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "PikaDebug_Debuger.h"
|
||||
|
||||
extern PikaObj* __pikaMain;
|
||||
static enum shell_state __obj_shellLineHandler_obj_run(PikaObj* self,
|
||||
static enum shell_state __obj_shellLineHandler_debuger(PikaObj* self,
|
||||
char* input_line) {
|
||||
/* continue */
|
||||
if (strEqu("c", input_line)) {
|
||||
@ -19,5 +19,5 @@ void PikaDebug_Debuger_set_trace(PikaObj* self) {
|
||||
struct shell_config cfg = {
|
||||
.prefix = "(pika-debug) ",
|
||||
};
|
||||
obj_shellLineProcess(__pikaMain, __obj_shellLineHandler_obj_run, &cfg);
|
||||
obj_shellLineProcess(__pikaMain, __obj_shellLineHandler_debuger, &cfg);
|
||||
}
|
||||
|
@ -628,7 +628,7 @@ void obj_shellLineProcess(PikaObj* self,
|
||||
}
|
||||
}
|
||||
|
||||
static enum shell_state __obj_shellLineHandler_obj_run(PikaObj* self,
|
||||
static enum shell_state __obj_shellLineHandler_debuger(PikaObj* self,
|
||||
char* input_line) {
|
||||
/* exit */
|
||||
if (strEqu("exit()", input_line)) {
|
||||
@ -644,7 +644,7 @@ void pikaScriptShell(PikaObj* self) {
|
||||
struct shell_config cfg = {
|
||||
.prefix = ">>> ",
|
||||
};
|
||||
obj_shellLineProcess(self, __obj_shellLineHandler_obj_run, &cfg);
|
||||
obj_shellLineProcess(self, __obj_shellLineHandler_debuger, &cfg);
|
||||
}
|
||||
|
||||
void obj_setErrorCode(PikaObj* self, int32_t errCode) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user