Issues.00559 - lordmundi/wikidoctest GitHub Wiki

00559: add plugin logging functions that accept variable argument lists

« 00558 | Issues | 00560 »

Summary: add plugin logging functions that accept variable argument lists

Created: 2015–12–22 16:14

Status: Released

Category: Request

From: frankie

Version: 2.3

Released_In: 2.4

Description:

right now, when a developer needs to call DSF_LogStatus or DSF_LogWarning, they have to pass a string as an argument. If there are items that are dynamic in the string, they have to use sprintf or something similar to build up the string first.

It would be nice if there were a version of the Log* functions that accepted a variable argument list similar to the printf functions so variables and formatting strings can be used.


Comments

frankie December 23, 2015, at 04:33 PM: Add "#include dsp_plugin_common.h" to your plugin files to get the DSF_LogStatusQ, DSF_LogWarningQ, and DSF_LogErrorQ versions of these logging functions which take the same arguments as printf.


« 00558 | Issues | 00560 »

Associated Commits

| commit | f6402a3158ac70d3946fd2b90761b524516751f3 link5 | || | Author: | Frank Graffagnino | | Date: | Wed Dec 23 13:53:24 2015 -0600 | | Message: | [@Issue 00559, 00560, 00561: Added header to fix compiler warnings and add utility functions Specifically, this adds the DSF_Log*Q version of the log functions which accepts printf style arguments and also provides an easy way to log out a 4×4 matrix. Also, it fixes some string constant conversion warnings from the compiler. To use, include at the top of your plugin. @] |

Affected Files:

src.dist/includes/dsp_plugin_common.h | 72 +++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)