Open GoogleCodeExporter opened 8 years ago
To do that, you would have to write a 'native function' that took a filename,
loaded the file into a string, and then called tiny js's execute method on it.
It is quite easy, but there are no built in filesystem access functions
Original comment by marianne...@googlemail.com
on 24 Dec 2012 at 4:09
thank you .. and is it going to be recursive? because 'native function' is
going to execute first file but still there is another call inside this file ..
Original comment by rgray...@gmail.com
on 24 Dec 2012 at 6:32
It should be, as long as you don't do anything that isn't re-entrant in your
function.
Original comment by Morph...@googlemail.com
on 24 Dec 2012 at 10:17
so the native function should be able to fread all the files including inner
files into a big stream and execute it all at once. correct?
Original comment by rgray...@gmail.com
on 24 Dec 2012 at 10:23
Dear marianne,
I just added scCmdCall function into the script.cpp file and also registered
the native function. inside the scCmdCall function I'm parsing a test file and
executing the buffer but unfortunately keep getting an error.
I just attached the modified script.cpp file here. would you please take a look
at this script and let me know what I'm doing is wrong?
-Roozbeh
Original comment by rgray...@gmail.com
on 25 Dec 2012 at 8:58
Attachments:
Original issue reported on code.google.com by
rgray...@gmail.com
on 24 Dec 2012 at 9:52