You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is basically a duplicate of #2 because dbg(…) doesn't currently support multiple arguments. What happens is that
"Request from", t->message, 2
is treated as a comma-operator expression which evaluates to 2. This is why this line (confusingly) prints "Request from", t->message, 23 = 23 (the left-hand side of the = sign is just the stringified expression inside the dbg(…) macro).
The following fails to print the content of t->message
expected output:
[..xxx.cpp:24 (helloWorld)] "Request from", t->message = "hello" (std::string), 23 = 23 (int)
actual output:
[..xxx.cpp:24 (helloWorld)] "Request from", t->message, 23 = 23 (int)
The text was updated successfully, but these errors were encountered: