aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/macros.h
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-10-03 10:46:11 +0200
committerJustin M. Keyes <justinkz@gmail.com>2016-12-09 18:51:17 +0100
commit043f85210a06168e36f103950897e00918504f6f (patch)
tree0559ca04b5a34bb6af6934bca9d3efedeb6ef734 /src/nvim/macros.h
parent5082af415f762e5f5974214e32deff883141bfc2 (diff)
downloadrneovim-043f85210a06168e36f103950897e00918504f6f.tar.gz
rneovim-043f85210a06168e36f103950897e00918504f6f.tar.bz2
rneovim-043f85210a06168e36f103950897e00918504f6f.zip
tui: "backpressure": Drop messages to avoid flooding.
Closes #1234 multiqueue: - Implement multiqueue_size() - Rename MultiQueueItem.parent to MultiQueueItem.parent_item, to avoid confusion with MultiQueue.parent.
Diffstat (limited to 'src/nvim/macros.h')
-rw-r--r--src/nvim/macros.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h
index 79e545771e..df2b431e92 100644
--- a/src/nvim/macros.h
+++ b/src/nvim/macros.h
@@ -158,4 +158,7 @@
#define RGB(r, g, b) ((r << 16) | (g << 8) | b)
+#define STR_(x) #x
+#define STR(x) STR_(x)
+
#endif // NVIM_MACROS_H