Sha256: 1bfae6cb01ac17836d8b69ae085b0fb05f7ba1781a4d959ea40df241f05a726f

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 Bytes

Contents

#ifndef BANDIT_ADAPTERS_SNOWHOUSE_H
#define BANDIT_ADAPTERS_SNOWHOUSE_H

namespace bandit { namespace adapters {

  struct snowhouse_adapter : public assertion_adapter
  {
    void adapt_exceptions(detail::voidfunc_t func)
    {
      try
      {
        func();
      }
      catch(const snowhouse::AssertionException& ex)
      {
        throw bandit::detail::assertion_exception(ex.GetMessage(), ex.GetFilename(), ex.GetLineNumber());
      }
    }
  };

}}
#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/bandit/bandit/adapters/snowhouse.h
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/bandit/bandit/adapters/snowhouse.h