Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make TRY2 macro work outside of ebpf namespace #2604

Merged
merged 1 commit into from
Nov 18, 2019

Conversation

eklitzke
Copy link
Contributor

The TRY2 macro is very useful for wrapping methods that return a StatusTuple, and is defined in the same header as StatusTuple (and is therefore visible when including BPH.h). However, the macro is written in such a way that it only works from within the ebpf namespace, which limits its usefulness in other projects. This makes it so I can use the TRY2 macro in my own project.

@yonghong-song
Copy link
Collaborator

[buildbot, ok to test]

@yonghong-song
Copy link
Collaborator

[buildbot, test this please]

@yonghong-song yonghong-song merged commit f0f19db into iovisor:master Nov 18, 2019
CrackerCat pushed a commit to CrackerCat/bcc that referenced this pull request Jul 31, 2024
make TRY2 macro work outside of ebpf namespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants