summaryrefslogtreecommitdiffstats
path: root/scilab/modules/action_binding/src/c/InterpreterManagement.c
diff options
context:
space:
mode:
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)