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

fix infinite recursion issue #10

Merged
merged 1 commit into from
Jul 24, 2022
Merged

fix infinite recursion issue #10

merged 1 commit into from
Jul 24, 2022

Conversation

Athlon64
Copy link
Contributor

@Athlon64 Athlon64 commented Jun 7, 2022

When the name of the function to be benchmarked happens to be test, the program will fall into an infinite loop.
The sample code is as follows:

import benchy

proc test() =
    # some code to be benchmarked...
    discard

timeIt "test function":
    test()

@treeform treeform merged commit b481d22 into treeform:master Jul 24, 2022
@treeform
Copy link
Owner

Looks good thank you for the PR!

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