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

temp_begin for Temp Allocator is documented incorrectly #52

Open
nobodyspecial1553 opened this issue Nov 10, 2024 · 0 comments
Open

temp_begin for Temp Allocator is documented incorrectly #52

nobodyspecial1553 opened this issue Nov 10, 2024 · 0 comments

Comments

@nobodyspecial1553
Copy link

nobodyspecial1553 commented Nov 10, 2024

The documentation on the website shows the procedure to be:

default_temp_allocator_temp_begin :: proc(loc: Source_Code_Location) -> (temp: Arena_Temp) {…}

The actual source code is as such:

default_temp_allocator_temp_begin :: proc(loc := #caller_location) -> (temp: Arena_Temp) {…}

As you can tell, the former states the caller must explicitly provide the source code location, whereas the latter (which is from the source) states that if no source is provided, it will default to the #caller_location.

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

No branches or pull requests

1 participant