Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
115b480f
Commit
115b480f
authored
Jul 15, 2008
by
Tiago Peixoto
Browse files
Remove internal properties from run_action code
parent
025fe7d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/run_action/inline.py
View file @
115b480f
...
...
@@ -130,7 +130,9 @@ def inline(g, code, arg_names=[], local_dict=None,
# check if exception was thrown
if
ret_vals
[
"__exception_thrown"
]:
libgraph_tool_core
.
raise_error
(
ret_vals
[
"__exception_error"
])
else
:
del
ret_vals
[
"__exception_thrown"
]
del
ret_vals
[
"__exception_error"
]
sys
.
setdlopenflags
(
orig_dlopen_flags
)
# reset dlopen to normal case to
# avoid unnecessary symbol collision
return
ret_vals
src/graph_tool/run_action/run_action_template.hh
View file @
115b480f
...
...
@@ -40,8 +40,7 @@ template <class Action>
void
RunAction
(
GraphInterface
&
g
,
const
Action
&
a
)
{
run_action
<>
()(
g
,
lambda
::
bind
<
void
>
(
a
,
lambda
::
_1
,
g
.
_vertex_index
,
g
.
_edge_index
,
lambda
::
var
(
g
.
_properties
)))();
g
.
_edge_index
))();
}
}
...
...
@@ -67,8 +66,7 @@ struct action_${code_hash}
template
<
class
Graph
,
class
VertexIndex
,
class
EdgeIndex
>
void
operator
()(
Graph
*
__gp
,
VertexIndex
vertex_index
,
EdgeIndex
edge_index
,
dynamic_properties
&
properties
)
const
EdgeIndex
edge_index
)
const
{
Graph
&
g
=
*
__gp
;
// convenience typedefs
...
...
Write
Preview
Markdown
is supported
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