Skip to content

Commit

Permalink
Add #else, #endif condition comments (flutter#10477)
Browse files Browse the repository at this point in the history
Adds a few missing condition hints on some preprocessor conditionals.
  • Loading branch information
cbracken authored Aug 2, 2019
1 parent bca5925 commit da0b771
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions shell/platform/fuchsia/dart-pkg/zircon/sdk_ext/system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#if !defined(FUCHSIA_SDK)
#include <fuchsia/device/manager/cpp/fidl.h>
#include "lib/fsl/io/fd.h"
#endif
#endif // !defined(FUCHSIA_SDK)

using tonic::ToDart;

Expand Down Expand Up @@ -180,7 +180,7 @@ zx_status_t System::Reboot() {
#if defined(FUCHSIA_SDK)
FML_CHECK(false);
return ZX_ERR_NOT_SUPPORTED;
#else
#else // !defined(FUCHSIA_SDK)
zx::channel local, remote;
auto status = zx::channel::create(0, &local, &remote);
if (status != ZX_OK) {
Expand All @@ -205,14 +205,14 @@ zx_status_t System::Reboot() {
}

return status != ZX_OK ? status : call_status;
#endif
#endif // !defined(FUCHSIA_SDK)
}

Dart_Handle System::ChannelFromFile(std::string path) {
#if defined(FUCHSIA_SDK)
FML_CHECK(false);
return Dart_Null();
#else
#else // !defined(FUCHSIA_SDK)
fml::UniqueFD fd = FdFromPath(path);
if (!fd.is_valid()) {
return ConstructDartObject(kHandleResult, ToDart(ZX_ERR_IO));
Expand All @@ -226,7 +226,7 @@ Dart_Handle System::ChannelFromFile(std::string path) {

return ConstructDartObject(kHandleResult, ToDart(ZX_OK),
ToDart(Handle::Create(channel.release())));
#endif
#endif // !defined(FUCHSIA_SDK)
}

zx_status_t System::ChannelWrite(fml::RefPtr<Handle> channel,
Expand Down

0 comments on commit da0b771

Please sign in to comment.