From 7efa2e398493528c5a95505707aca841615a5747 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Tue, 26 May 2020 10:30:12 +0200 Subject: [PATCH] Reformulation of README paragraph --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f558dfe..b9dde54 100644 --- a/README.md +++ b/README.md @@ -93,13 +93,15 @@ vcpkg install dbg-macro ### Multiple arguments -Passing multiple arguments to the `dbg()` macro would just work. The output of -`dbg(x, y)` is same as `dbg(x); dbg(y)`. If there are unprotected commas, -please wrap them with parenthesis. +You can pass multiple arguments to the `dbg(…)` macro. The output of +`dbg(x, y, z)` is same as `dbg(x); dbg(y); dbg(z);`: +``` c++ +dbg(42, "hello world", false); +``` +Note that you have to wrap "unprotected commas" in parentheses: ```c++ -dbg(42, "hello world"); -dbg(1, (std::vector{2, 3, 4}), 5); +dbg("a vector:", (std::vector{2, 3, 4})); ``` ### Hexadecimal, octal and binary format