This repository contains a bazel build target for Google C++ status macros, redistributed from mediapipe.
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "status_macros",
strip_prefix = "status_macros-1.0.1",
urls = ["https://github.com/bashtavenko/status_macros/archive/refs/tags/v1.0.1.tar.gz"],
)
Add "@status_macros" to BUILD deps for targets that use this.
Add #include "status_macros.h" to your source.
See RETURN_IF_ERROR and ASSIGN_OR_RETURN.