mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 21:18:34 +00:00
refactor(object): get rid of redundant FIXED_TEMP_ARRAY
use the MAXSIZE_TEMP_ARRAY + ADD_C pattern instead, as exemplified by the changes in this commit.
This commit is contained in:
@@ -2052,8 +2052,8 @@ static bool call_autocmd_callback(const AutoCmd *ac, const AutoPatCmd *apc)
|
||||
break;
|
||||
}
|
||||
|
||||
FIXED_TEMP_ARRAY(args, 1);
|
||||
args.items[0] = DICTIONARY_OBJ(data);
|
||||
MAXSIZE_TEMP_ARRAY(args, 1);
|
||||
ADD_C(args, DICTIONARY_OBJ(data));
|
||||
|
||||
Object result = nlua_call_ref(callback.data.luaref, NULL, args, true, NULL);
|
||||
if (result.type == kObjectTypeBoolean) {
|
||||
|
Reference in New Issue
Block a user