macro: Add MAX macro and rename min to MIN

This commit is contained in:
Thiago de Arruda
2015-02-13 12:05:38 -03:00
parent 98dca8a827
commit 8f31ebc4f7
3 changed files with 4 additions and 3 deletions

View File

@@ -8,7 +8,8 @@
#ifndef NVIM_VIM_H
# define NVIM_VIM_H
#define min(X, Y) (X < Y ? X : Y)
#define MIN(X, Y) (X < Y ? X : Y)
#define MAX(X, Y) (X > Y ? X : Y)
#include "nvim/types.h"
#include "nvim/pos.h" // for linenr_T, MAXCOL, etc...