From fa579dfd846d50bcd2edd28277036b2fb298c643 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Thu, 22 Jul 2021 22:36:29 +0200 Subject: fix broken debug define checks, move lutris enums to special headers --- src/lutris/array.h | 5 +++++ src/lutris/enum.h | 5 +++++ src/lutris/keyword.h | 12 ++++++++++++ src/lutris/runner.h | 11 +++++++++++ src/lutris/task.h | 5 +++++ 5 files changed, 38 insertions(+) create mode 100644 src/lutris/array.h create mode 100644 src/lutris/enum.h create mode 100644 src/lutris/keyword.h create mode 100644 src/lutris/runner.h create mode 100644 src/lutris/task.h (limited to 'src/lutris') diff --git a/src/lutris/array.h b/src/lutris/array.h new file mode 100644 index 0000000..ac1da1c --- /dev/null +++ b/src/lutris/array.h @@ -0,0 +1,5 @@ +#ifdef CREATE_ENUM +#undef CREATE_ENUM +#endif + +#define CREATE_ENUM(x) #x, \ No newline at end of file diff --git a/src/lutris/enum.h b/src/lutris/enum.h new file mode 100644 index 0000000..2b91def --- /dev/null +++ b/src/lutris/enum.h @@ -0,0 +1,5 @@ +#ifdef CREATE_ENUM +#undef CREATE_ENUM +#endif + +#define CREATE_ENUM(x) x, \ No newline at end of file diff --git a/src/lutris/keyword.h b/src/lutris/keyword.h new file mode 100644 index 0000000..c98f855 --- /dev/null +++ b/src/lutris/keyword.h @@ -0,0 +1,12 @@ +CREATE_ENUM(move) +CREATE_ENUM(merge) +CREATE_ENUM(extract) +CREATE_ENUM(copy) +CREATE_ENUM(chmodx) +CREATE_ENUM(execute) +CREATE_ENUM(write_file) +CREATE_ENUM(write_config) +CREATE_ENUM(write_json) +CREATE_ENUM(input_menu) +CREATE_ENUM(insert_disc) +CREATE_ENUM(task) \ No newline at end of file diff --git a/src/lutris/runner.h b/src/lutris/runner.h new file mode 100644 index 0000000..b5373c2 --- /dev/null +++ b/src/lutris/runner.h @@ -0,0 +1,11 @@ +CREATE_ENUM(unknown_runner) +CREATE_ENUM(wine) +#ifdef linux +#define _linux linux +#undef linux +#endif +CREATE_ENUM(linux) +#ifdef _linux +#define linux _linux +#undef _linux +#endif \ No newline at end of file diff --git a/src/lutris/task.h b/src/lutris/task.h new file mode 100644 index 0000000..8a208df --- /dev/null +++ b/src/lutris/task.h @@ -0,0 +1,5 @@ +CREATE_ENUM(wineexec) +CREATE_ENUM(winetricks) +CREATE_ENUM(create_prefix) +CREATE_ENUM(set_regedit) +CREATE_ENUM(winekill) \ No newline at end of file -- cgit v1.2.3