Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
86fc31b5
Commit
86fc31b5
authored
Dec 23, 2016
by
Maxime Perrotin
Browse files
Fix send/restore context function (for simulation)
parent
33aa6c52
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
86fc31b5
...
...
@@ -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
...
...
opengeode/AdaGenerator.py
View file @
86fc31b5
...
...
@@ -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
(
""
)
...
...
opengeode/opengeode.py
View file @
86fc31b5
...
...
@@ -138,7 +138,7 @@ except ImportError:
__all__
=
[
'opengeode'
,
'SDL_Scene'
,
'SDL_View'
,
'parse'
]
__version__
=
'1.5.2
1
'
__version__
=
'1.5.2
2
'
if
hasattr
(
sys
,
'frozen'
):
# Detect if we are running on Windows (py2exe-generated)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment