mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
548f03c66c
A varargs functions can never be inlined, so a macro is faster.
17 lines
321 B
C
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];
|
|
}
|