Skip to content

Conversation

@mgerhardy
Copy link
Contributor

No description provided.

@floooh
Copy link
Owner

floooh commented Mar 22, 2016

StringBuilder is a bit heavy for this, please use std::snprintf() into a char buffer on the stack (for instance, like here:

std::snprintf(buf, sizeof(buf), "{\"msg\":\"log\",\"val\":\"oryol assert: cond='%s'\nmsg='%s'\nfile='%s'\nline='%d'\nfunc='%s'\"}",
)

Also, you could be the first to add a few tests for this to

/// @todo IMPLEMENT STRING CONVERTER TEST!!!
;)

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.

2 participants