summaryrefslogtreecommitdiffstats
path: root/scilab/modules/action_binding/src/c/InterpreterManagement.c
diff options
context:
space:
mode:
authorClément David <clement.david@esi-group.com>2021-03-17 11:41:01 +0100
committerClément DAVID <clement.david@esi-group.com>2021-03-17 11:43:43 +0100
commitb0937f19e4b8ddf416ca9a9a433bcbbd3f4ef2c0 (patch)
tree2e9d3376c44e771a6b6d9617648c0d54f6ad19cd /scilab/modules/action_binding/src/c/InterpreterManagement.c
parent2797926fe5a3af91029ce4fc018ced0c286e6fe3 (diff)
parentdc43fe423fcb72cdb633ec7245e643778ebca0f2 (diff)
downloadscilab-b0937f19e4b8ddf416ca9a9a433bcbbd3f4ef2c0.zip
scilab-b0937f19e4b8ddf416ca9a9a433bcbbd3f4ef2c0.tar.gz
Merge remote-tracking branch 'origin/6.1'
Change-Id: Ib0d28e655fbe284160353797a9b1bedae7cea1b8
Diffstat (limited to 'scilab/modules/action_binding/src/c/InterpreterManagement.c')
-rw-r--r--scilab/modules/action_binding/src/c/InterpreterManagement.c28
1 files changed, 26 insertions, 2 deletions
diff --git a/scilab/modules/action_binding/src/c/InterpreterManagement.c b/scilab/modules/action_binding/src/c/InterpreterManagement.c
index 98f9c3c..8c18f73 100644
--- a/scilab/modules/action_binding/src/c/InterpreterManagement.c
+++ b/scilab/modules/action_binding/src/c/InterpreterManagement.c
@@ -19,7 +19,19 @@
19/*--------------------------------------------------------------------------*/ 19/*--------------------------------------------------------------------------*/
20int putCommandInScilabQueue(char *command) 20int putCommandInScilabQueue(char *command)
21{ 21{
22 return StoreCommand(command); 22 if(isEnableDebug())
23 {
24 if(isDebugInterrupted())
25 {
26 return 1;
27 }
28
29 return debuggerManagerExecute(command);
30 }
31 else
32 {
33 return StoreCommand(command);
34 }
23} 35}
24/*--------------------------------------------------------------------------*/ 36/*--------------------------------------------------------------------------*/
25/* 37/*
@@ -30,7 +42,19 @@ int putCommandInScilabQueue(char *command)
30*/ 42*/
31int requestScilabExec(char *command) 43int requestScilabExec(char *command)
32{ 44{
33 return StorePrioritaryCommand(command); 45 if(isEnableDebug())
46 {
47 if(isDebugInterrupted())
48 {
49 return 1;
50 }
51
52 return debuggerManagerExecute(command);
53 }
54 else
55 {
56 return StorePrioritaryCommand(command);
57 }
34} 58}
35/*--------------------------------------------------------------------------*/ 59/*--------------------------------------------------------------------------*/
36int interruptScilab(void) 60int interruptScilab(void)