Sync with various Google-internal changes.

Should not mean much for the open-source version.
This commit is contained in:
Steinar H. Gunderson
2015-06-22 16:07:58 +02:00
parent 22acaf438e
commit 11ccdfb868
3 changed files with 27 additions and 33 deletions

View File

@@ -132,7 +132,7 @@ namespace File {
} // namespace File
namespace file {
int Defaults() { }
int Defaults() { return 0; }
class DummyStatus {
public:
@@ -158,6 +158,8 @@ namespace file {
}
fclose(fp);
return DummyStatus();
}
DummyStatus SetContents(const string& filename,
@@ -176,6 +178,8 @@ namespace file {
}
fclose(fp);
return DummyStatus();
}
} // namespace file
@@ -572,6 +576,7 @@ class LogMessageVoidify {
#define CHECK_NE(a, b) CRASH_UNLESS((a) != (b))
#define CHECK_LT(a, b) CRASH_UNLESS((a) < (b))
#define CHECK_GT(a, b) CRASH_UNLESS((a) > (b))
#define CHECK_OK(cond) (cond).CheckSuccess()
} // namespace