terminal: use constexpr instead of #define

This commit is contained in:
Moritz Bunkus 2021-02-20 20:46:55 +01:00
parent 7268a982ad
commit 0429c4275a
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -28,7 +28,7 @@
#include "common/terminal.h"
#define DEFAULT_TERMINAL_COLUMNS 80
constexpr auto DEFAULT_TERMINAL_COLUMNS = 80;
int
get_terminal_columns() {