neovim/test/unit/fixtures/multiqueue.c
zeertzjq 548f03c66c
refactor: change event_create() to a macro (#26343)
A varargs functions can never be inlined, so a macro is faster.
2023-12-01 15:22:22 +08:00

17 lines
321 B
C

#include <string.h>
#include <stdlib.h>
#include "nvim/event/multiqueue.h"
#include "multiqueue.h"
void ut_multiqueue_put(MultiQueue *self, const char *str)
{
multiqueue_put(self, NULL, (void *)str);
}
const char *ut_multiqueue_get(MultiQueue *self)
{
Event event = multiqueue_get(self);
return event.argv[0];
}