mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 15:33:16 +00:00
Remove the useless (and dangerous) semicolons from the WFL macro definitions
This commit is contained in:
parent
184cdd8afc
commit
f759e4ecd1
@ -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>()))
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user