diff options
author | nutricato | 2009-06-25 15:45:46 +0000 |
---|---|---|
committer | nutricato | 2009-06-25 15:45:46 +0000 |
commit | aa32e0cefece0e1d91f3b23d3e0f850759d51523 (patch) | |
tree | a53402fd15b2b8acd260e68b1eb9354f3bcc21f7 | |
parent | 18f9280235218cad37529b98ab56e677032850c2 (diff) | |
download | scilab2c-aa32e0cefece0e1d91f3b23d3e0f850759d51523.tar.gz scilab2c-aa32e0cefece0e1d91f3b23d3e0f850759d51523.tar.bz2 scilab2c-aa32e0cefece0e1d91f3b23d3e0f850759d51523.zip |
-rw-r--r-- | macros/scilab2c.sci | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/macros/scilab2c.sci b/macros/scilab2c.sci index ae8f4744..0bfd75b2 100644 --- a/macros/scilab2c.sci +++ b/macros/scilab2c.sci @@ -88,10 +88,18 @@ function scilab2c(varargin) // -- FIXME : bypass this for now !! // -- userchoice = messagebox("Exection Succesfull. Start translation ?", "modal", "info", ["Yes" "No"]) -userchoice = 0; -if (userchoice == 1) +// userchoice = 0; +// if (userchoice == 1) // --- LAUNCH SCI2C --- - runsci2c(UserScilabMainFile, UserSciFilesPaths, CCodeOutputDir, RunMode); +// runsci2c(UserScilabMainFile, UserSciFilesPaths, CCodeOutputDir, RunMode); // cd(SCI2CDirectory); - end +// +// end + +userchoice = input('Start translation [y/n]?','s'); +if (userchoice == 'y') + // --- LAUNCH SCI2C --- + runsci2c(UserScilabMainFile, UserSciFilesPaths, CCodeOutputDir, RunMode); +end + endfunction |