Skip to content

Commit

Permalink
Remove the useless (and dangerous) semicolons from the WFL macro defi…
Browse files Browse the repository at this point in the history
…nitions
  • Loading branch information
CelticMinstrel authored and GregoryLundberg committed Nov 30, 2017
1 parent 19d4ffc commit 533a534
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ai/formula/function_table.cpp
Expand Up @@ -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<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>()))
Expand Down
2 changes: 1 addition & 1 deletion src/formula/function.hpp
Expand Up @@ -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
{
Expand Down

0 comments on commit 533a534

Please sign in to comment.