From 533a534582f87d39a3f13662b271b10e5e43e676 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Tue, 14 Nov 2017 23:16:58 -0500 Subject: [PATCH] Remove the useless (and dangerous) semicolons from the WFL macro definitions --- src/ai/formula/function_table.cpp | 2 +- src/formula/function.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ai/formula/function_table.cpp b/src/ai/formula/function_table.cpp index a913c78b3da54..45def920aaf05 100644 --- a/src/ai/formula/function_table.cpp +++ b/src/ai/formula/function_table.cpp @@ -1354,7 +1354,7 @@ class ai_formula_function : public formula_function { // This macro is for functions taking an additional formula_ai argument. // Functions using the other macro could potentially be made core. #define DECLARE_FAI_FUNCTION(name) \ - add_function(#name, std::make_shared>(#name, ai)); + add_function(#name, std::make_shared>(#name, ai)) ai_function_symbol_table::ai_function_symbol_table(ai::formula_ai& ai) : function_symbol_table(std::make_shared(std::make_shared())) diff --git a/src/formula/function.hpp b/src/formula/function.hpp index 151a4b8f3e45d..c3ba720ad6dc5 100644 --- a/src/formula/function.hpp +++ b/src/formula/function.hpp @@ -45,7 +45,7 @@ namespace wfl * The function must be defined by a `name_function` class which is accessible in the current scope. */ #define DECLARE_WFL_FUNCTION(name) \ - functions_table.add_function(#name, std::make_shared>(#name)); + functions_table.add_function(#name, std::make_shared>(#name)) struct call_stack_manager {