summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-09-14 00:35:47 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-09-14 00:35:47 +0200
commit2010f84297e6712664561a976854fe7f64fcb2d0 (patch)
tree961f9f6b5630cd28f8a8da2f1cb9e3b81684276e /common.h
parentMerge "Close cmd_pipe properly after updater test finishes" am: 64307daf5b am: a11601da9b (diff)
parentMerge "Remove EXPAND/STRINGIFY macros." am: 6e7df82c7b (diff)
downloadandroid_bootable_recovery-2010f84297e6712664561a976854fe7f64fcb2d0.tar
android_bootable_recovery-2010f84297e6712664561a976854fe7f64fcb2d0.tar.gz
android_bootable_recovery-2010f84297e6712664561a976854fe7f64fcb2d0.tar.bz2
android_bootable_recovery-2010f84297e6712664561a976854fe7f64fcb2d0.tar.lz
android_bootable_recovery-2010f84297e6712664561a976854fe7f64fcb2d0.tar.xz
android_bootable_recovery-2010f84297e6712664561a976854fe7f64fcb2d0.tar.zst
android_bootable_recovery-2010f84297e6712664561a976854fe7f64fcb2d0.zip
Diffstat (limited to 'common.h')
-rw-r--r--common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/common.h b/common.h
index 62fb1324b..8b336f806 100644
--- a/common.h
+++ b/common.h
@@ -22,8 +22,9 @@
#include <string>
-#define STRINGIFY(x) #x
-#define EXPAND(x) STRINGIFY(x)
+// Not using the command-line defined macro here because this header could be included by
+// device-specific recovery libraries. We static assert the value consistency in recovery.cpp.
+static constexpr int kRecoveryApiVersion = 3;
class RecoveryUI;