diff options
author | Jack Lloyd <[email protected]> | 2017-12-30 14:11:46 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-30 14:11:46 -0500 |
commit | 2d3cee8b02a1823ef05eedbbd3e435131460635a (patch) | |
tree | 0f99b47571fa5cec81a97f32bb3370b958758cc5 /src/cli | |
parent | cd6e777c32333248329edc3312408aa6eecae512 (diff) |
Remove BOTAN_FORCE_SEMICOLON macro
Only needed in two headers (cli.h and test.h) not in the main library.
Just change those two uses to not use anonymous namespaces.
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/cli.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cli/cli.h b/src/cli/cli.h index d096617a3..118d61cb6 100644 --- a/src/cli/cli.h +++ b/src/cli/cli.h @@ -185,10 +185,9 @@ class Command }; }; -#define BOTAN_REGISTER_COMMAND(name, CLI_Class) \ - namespace { Botan_CLI::Command::Registration \ - reg_cmd_ ## CLI_Class(name, []() -> Botan_CLI::Command* { return new CLI_Class; }); } \ - BOTAN_FORCE_SEMICOLON +#define BOTAN_REGISTER_COMMAND(name, CLI_Class) \ + Botan_CLI::Command::Registration reg_cmd_ ## CLI_Class(name, \ + []() -> Botan_CLI::Command* { return new CLI_Class; }) } |