-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Call-site macro #45
Comments
@check_allocs multiply(rand(10,10), rand(10,10)) What is that expression supposed to say about the allocations in |
Nothing. Similar to |
Just to round out the discussion, I wanted to point out #49 which is relevant for some of use cases mentioned on Discourse If you need hard guarantees that some code is allocation-free, then right now you (unfortunately) have to go through the That said, a call-site macro sounds like a fine idea to me 👍 |
Hi there! I just started using AllocCheck and it is very neat. check_allocs(f, typeof.((x, y, z))) Just a friendly encouragement to anyone working on the call site macro, your work will not be in vain! |
Came up on discourse.
Would be nice to have a macro that is similar to
@code_*
and others and that can be used likerather than having to augment the method definition (and run the allocation check on every call). I assume this is straightforward given that there already is the
check_allocs
function that works on the function signature alone.The text was updated successfully, but these errors were encountered: