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

feat: 0.1.20 kls->has_temp #21

Merged
merged 3 commits into from
Sep 7, 2023
Merged

feat: 0.1.20 kls->has_temp #21

merged 3 commits into from
Sep 7, 2023

Conversation

jgabaut
Copy link
Owner

@jgabaut jgabaut commented Sep 7, 2023

  • Rename kls_push_zero() to kls_push_zero_AR() and refactor the old one to remove the Region allocation and initialisation.
  • Add has_temp to Koliseo struct, initialised to 0 in kls_new().
  • Make kls_temp_start() do assert(kls->has_temp == 0), so that a Koliseo may only have one active Koliseo_Temp concurrently at runtime.
  • Make kls_temp_end() set has_temp back to 0.
  • All KLS_PUSH_T macros now ignore KOLISEO_AUTOSET_REGIONS and instead call kls_push_zero().

Add kls_push_zero() with no autoregion check, to force Temp API pushes
not to create Regions.

kls_temp_start():  assert kls->has_temp == 0.

All KLS_PUSH_T macros now resolve to kls_push_zero(), discarding the
Region tagging arguments.
@jgabaut jgabaut merged commit cf738c4 into master Sep 7, 2023
1 check passed
@jgabaut jgabaut deleted the devel branch September 7, 2023 13:40
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.

1 participant