-
Notifications
You must be signed in to change notification settings - Fork 198
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
PR to issue #143: Assert costumizing #148
PR to issue #143: Assert costumizing #148
Conversation
Is there any action from my side needed? |
Sorry currently i don't have time for review and i gues @MichalPrincNXP also. @MichalPrincNXP could you put some estimation here? |
Hello @willmann9527 , I am sorry I am not able to focus on your PR now. Please, give me some time, I will get back to you, OK? |
Hello, sorry that we didn't focus on your PR for such a long time. I like your solution but currently there are conflicts and redundant imports. Can you update your PR? Sorry once more. |
I fixed it locally but do not have the permission to push. Could you allow me? |
Hi @willmann9527 we don't have any permission to your branch. You need update your branch and push into your branch same as current one or create new one |
This is your fork and you are owner of it https://github.com/willmann9527/erpc/tree/Assert_costumizing_%23143 |
…_#143 # Conflicts: # erpc_c/infra/erpc_arbitrated_client_manager.cpp # erpc_c/infra/erpc_basic_codec.cpp # erpc_c/infra/erpc_client_manager.cpp # erpc_c/infra/erpc_framed_transport.cpp # erpc_c/infra/erpc_message_buffer.cpp # erpc_c/infra/erpc_transport_arbitrator.cpp # erpc_c/port/erpc_setup_extensions_freertos.cpp # erpc_c/setup/erpc_setup_mbf_dynamic.cpp # erpc_c/setup/erpc_setup_mbf_static.cpp # erpc_c/transports/erpc_rpmsg_lite_rtos_transport.cpp # erpc_c/transports/erpc_rpmsg_tty_rtos_transport.cpp
Where is the project you are running to build the code? |
@willmann9527 i am not sure what do you mean. For building PR request we are using circleci. Build is triggered automatically and you should be able to see result and details |
i would improve this commit. 639d72a Better way to implement is add note in configs that this option exists: And default: |
This is not good change: 973987e Please read once again my proposal. If you have any question ask me. Thank you ;) |
The thing is that I have already replaced all asserts by erpc_assert. In your proposal we are going to get a lot of build errors. In addition, it is not possible to customize the assert. Or do I overlook something? |
erpc_config_internal.h is not included in all these files. |
@willmann9527 So the thing is that
erpc_config.h => erpc_config_internal.h => others files |
@willmann9527 You are almost at the end of this PR. Thank you for your patiente. Now based on my suggestions please remove erpc_config.h includes (they are now even more redundant as before) and include "erpc_config_internal.h" where it has to be (i think only one place which will solve current build fail). |
If you switched to section File changes, you will still see a lot of includes you didn't remove. Also there is one more suggestion to replace old assert with new one which you missed: |
Still around 2 requests to finish this task: https://github.com/EmbeddedRPC/erpc/pull/148/files |
I hope it is ok i pushed some code into your branch ;) Now i think it is ready to merge. Thank you for your contribution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MichalPrincNXP I am approving this PR based on build result and my review.
No worries, that is fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about the update of unit test files (test/common folder)? I would replaced assert by erpc_assert here as well.
I think i covered them all now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All tests passed. Thank you for all the effort and the patience!
Modifications to set up a proprietary assert function or to disable asserts (empty define).
The code has not been build cause I have no opportunitie to do it, but it should run as usual.