pytorch/torch/csrc/jit/catch_utils.hpp
Gregory Chanan e00fb69b25 Use CATCH prefix to avoid name conflicts with Caffe2.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/11780

Differential Revision: D9889925

Pulled By: gchanan

fbshipit-source-id: 5eca849c36ced00b8ae7482b7945b445a3e1687e
2018-09-18 08:12:45 -07:00

9 lines
334 B
C++

#pragma once
#define CATCH_CONFIG_PREFIX_ALL
#include <catch.hpp>
// CATCH_REQUIRE_THROWS is not defined identically to REQUIRE_THROWS and causes warning;
// define our own version that doesn't warn.
#define _CATCH_REQUIRE_THROWS( ... ) INTERNAL_CATCH_THROWS( "CATCH_REQUIRE_THROWS", Catch::ResultDisposition::Normal, __VA_ARGS__ )