diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-10-05 20:13:34 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-10-05 20:13:34 +0100 |
| commit | c4d0868df1117ad243ee8f7238985a822b0f775d (patch) | |
| tree | 4d75f4c60a2da4cbd85d3d130b773e21fce7be7b /stmhal/pyexec.c | |
| parent | a91ac2011f0131ce550bf227d78ccccbdab4f882 (diff) | |
py: Implement proper context save/restore for eval/exec; factor code.
This has benefits all round: code factoring for parse/compile/execute,
proper context save/restore for exec, allow to sepcify globals/locals
for eval, and reduced ROM usage by >100 bytes on stmhal and unix.
Also, the call to mp_parse_compile_execute is tail call optimised for
the import code, so it doesn't increase stack memory usage.
Diffstat (limited to 'stmhal/pyexec.c')
0 files changed, 0 insertions, 0 deletions
