Commit 86fc31b5 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix send/restore context function (for simulation)

parent 33aa6c52
......@@ -142,6 +142,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
1.5.22 (12/2016)
- Simulation function save/restore context fix
1.5.21 (11/2016)
- Fix regression with test-math (import of external functions)
- Use monospace font in the HTML rendering of ASN.1 files
......
......@@ -394,12 +394,12 @@ package {process_name} is'''.format(process_name=process_name,
ads_template.append('pragma Export(C, restore_context, "_restore_context");')
dll_api.append("{} is".format(save_state_decl))
dll_api.append("begin")
dll_api.append("{ctxt} := {ctxt}_bk;".format(ctxt=LPREFIX))
dll_api.append("{ctxt}_bk := {ctxt};".format(ctxt=LPREFIX))
dll_api.append("end save_context;")
dll_api.append("")
dll_api.append("{} is".format(restore_state_decl))
dll_api.append("begin")
dll_api.append("{ctxt}_bk := {ctxt};".format(ctxt=LPREFIX))
dll_api.append("{ctxt} := {ctxt}_bk;".format(ctxt=LPREFIX))
dll_api.append("end restore_context;")
dll_api.append("")
......
......@@ -138,7 +138,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '1.5.21'
__version__ = '1.5.22'
if hasattr(sys, 'frozen'):
# Detect if we are running on Windows (py2exe-generated)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment