Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
3cb7a885
Commit
3cb7a885
authored
Jul 06, 2015
by
Maxime Perrotin
Browse files
Sync RI invokes callback function in simulation mode
parent
ca2e8d9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/AdaGenerator.py
View file @
3cb7a885
...
...
@@ -731,6 +731,7 @@ def _call_external_function(output, **kwargs):
for
out
in
output
.
output
:
signal_name
=
out
[
'outputName'
]
list_of_params
=
[]
if
signal_name
.
lower
()
in
(
'write'
,
'writeln'
):
# special built-in SDL procedure for printing strings
...
...
@@ -792,11 +793,15 @@ def _call_external_function(output, **kwargs):
if
sig
.
inputString
.
lower
()
==
signal_name
.
lower
()]
if
proc
.
external
:
out_sig
=
proc
if
SHARED_LIB
:
is_out_sig
=
True
list_of_params
=
[
'New_String("{}")'
.
format
(
out
[
'outputName'
])]
except
ValueError
:
# Not there? Impossible, the parser would have barked
raise
ValueError
(
u
'Probably a bug - please report'
)
if
out_sig
:
list_of_params
=
[]
#
list_of_params = []
for
idx
,
param
in
enumerate
(
out
.
get
(
'params'
)
or
[]):
param_direction
=
'in'
try
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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