Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add public print method that takes va_list instead of a variable number of arguments#41

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
pennam wants to merge1 commit intoarduino-libraries:master
base:master
Choose a base branch
Loading
frompennam:va_list

Conversation

pennam
Copy link
Contributor

I was tryng to improveSE05X library and get rid ofthis buffer used only for debugging purpose. To this i wanted to reuse Arduino_DebugUtils library.

SE05X NXP internal library already has builtin debug macros and is written in C so i cannot directly callArduino_DebugUtils.print function as macro substitution, but i need to create a wrapper CPP function with varargs that calls theArduino_DebugUtils.print method.

What i've found out is thatis not possible to call a function which takes a variable number of arguments and passes them to some other function (which takes a variable number of arguments) so the proposal to add a new method that takesva_list

Probably another option is to use avariadic function template or using__builtin_apply but i did not investigate them and i think the proposed option is more straightforward.

@per1234per1234 added type: enhancementProposed improvement topic: codeRelated to content of the project itself labelsJan 23, 2024
@github-actionsGitHub Actions
Copy link

Memory usage change @1cd099e

Boardflash%RAM for global variables%
arduino:avr:mega0 - 00.0 - 0.00 - 00.0 - 0.0
Click for full report table
Boardexamples/Arduino_Debug_Basic
flash
%examples/Arduino_Debug_Basic
RAM for global variables
%examples/Arduino_Debug_Advance
flash
%examples/Arduino_Debug_Advance
RAM for global variables
%
arduino:avr:mega00.000.000.000.0
Click for full report CSV
Board,examples/Arduino_Debug_Basic<br>flash,%,examples/Arduino_Debug_Basic<br>RAM for global variables,%,examples/Arduino_Debug_Advance<br>flash,%,examples/Arduino_Debug_Advance<br>RAM for global variables,%arduino:avr:mega,0,0.0,0,0.0,0,0.0,0,0.0

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
topic: codeRelated to content of the project itselftype: enhancementProposed improvement
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@pennam@per1234

[8]ページ先頭

©2009-2025 Movatter.jp