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

Update enter_exit_macros.inc #22

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/oop/enter_exit_macros.inc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
if (.not. t%enter_procedure_ok(checkin_name)) then ;\
return ;\
end if ;\
this%lifecycle_helper => lifecycle_helper_create_if_non_existent_and_ensure_create_call(this%lifecycle_helper)
this%lifecycle_helper => lc_helper_create_if_non_existent_and_ensure_create_call(this%lifecycle_helper)

#define ENTER_CREATE_PROCEDURE(procedure_name) ;\
ENTER_EXIT_COMMON_DECLARATIONS(procedure_name) ;\
Expand All @@ -77,18 +77,18 @@
#define ENTER_FINALIZE_PROCEDURE(procedure_name) ;\
ENTER_EXIT_COMMON_DECLARATIONS(procedure_name) ;\
ENTER_EXIT_CHECKIN_STUFF ;\
object_to_destroy%lifecycle_helper => lifecycle_helper_create_if_non_existent_and_ensure_create_call(object_to_destroy%lifecycle_helper) ;\
object_to_destroy%lifecycle_helper => lc_helper_create_if_non_existent_and_ensure_create_call(object_to_destroy%lifecycle_helper) ;\
call object_to_destroy%lifecycle_helper%set_finalize_subroutine_called()

#define ENTER_FINALIZE_INTERNAL_PROCEDURE(procedure_name) ;\
ENTER_EXIT_COMMON_DECLARATIONS(procedure_name) ;\
ENTER_EXIT_CHECKIN_STUFF ;\
this%lifecycle_helper => lifecycle_helper_create_if_non_existent_and_ensure_final_call(this%lifecycle_helper)
this%lifecycle_helper => lc_helper_create_if_non_existent_and_ensure_final_call(this%lifecycle_helper)

#define ENTER_NORMAL_PROCEDURE(procedure_name) ;\
ENTER_EXIT_COMMON_DECLARATIONS(procedure_name) ;\
ENTER_EXIT_CHECKIN_STUFF ;\
this%lifecycle_helper => lifecycle_helper_create_if_non_existent_and_ensure_create_call(this%lifecycle_helper)
this%lifecycle_helper => lc_helper_create_if_non_existent_and_ensure_create_call(this%lifecycle_helper)


#define EXIT_PROCEDURE() ;\
Expand Down
Loading