Skip to content

Commit

Permalink
Move #define
Browse files Browse the repository at this point in the history
  • Loading branch information
rbergen authored Oct 12, 2022
2 parents 1cf5fc5 + b80fc0a commit 8f87a9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ AnimateStatus& operator++(AnimateStatus& status);
#include "templates/base.h"
#include "inlines/base.h"

#define select(...) select_language_param(core.language, __VA_ARGS__)
#define select(...) select_language_param(core.language, __VA_ARGS__)
#define get_y_or_n() (tolower(console.main().get_char_input(select("jJnN", "yYnN"))) == select((int)'j', (int)'y'))
2 changes: 0 additions & 2 deletions include/types/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#include <memory>
#include <string>

#define get_y_or_n() (tolower(console.main().get_char_input(select("jJnN", "yYnN"))) == select((int)'j', (int)'y'))

using std::string;
using std::wstring;

Expand Down

0 comments on commit 8f87a9f

Please sign in to comment.