Remove the useless (and dangerous) semicolons from the WFL macro definitions

This commit is contained in:
Celtic Minstrel 2017-11-14 23:16:58 -05:00
parent 184cdd8afc
commit f759e4ecd1
2 changed files with 2 additions and 2 deletions

View File

@ -1354,7 +1354,7 @@ public:
// 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<ai_formula_function<name##_function>>(#name, ai));
add_function(#name, std::make_shared<ai_formula_function<name##_function>>(#name, ai))
ai_function_symbol_table::ai_function_symbol_table(ai::formula_ai& ai)
: function_symbol_table(std::make_shared<gamestate_function_symbol_table>(std::make_shared<action_function_symbol_table>()))

View File

@ -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<builtin_formula_function<name##_function>>(#name));
functions_table.add_function(#name, std::make_shared<builtin_formula_function<name##_function>>(#name))
struct call_stack_manager
{