Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pygccxml.declarations import call_invocation
- def test_is_call_invocation(call):
- if call_invocation.is_call_invocation(call):
- print call_invocation.name(call)
- for arg in call_invocation.args(call):
- print " ",arg
- else:
- print "not a function invocation"
- from pygccxml import parser
- from pygccxml import declarations
- decls = parser.parse( ['main.cpp'] )
- # ...
- void foo()
- {}
- void bar()
- {
- foo();
- }
Add Comment
Please, Sign In to add comment