Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
teardown.h
Go to the documentation of this file.
1#pragma once
2
4#include <Specs/SpecDone.h>
5
6#include <functional>
7
8#include "../GlobalInterface.h"
9
11
12 inline void teardown(std::function<void()> body) {
13 SpecsCpp::DSLs::GlobalInterface::define_teardown_fn(function_pointer(std::move(body)));
14 }
15
16 inline void teardown(std::function<void(SpecsCpp::SpecDone)> body) {
17 SpecsCpp::DSLs::GlobalInterface::define_teardown_fn(function_pointer(std::move(body)));
18 }
19}
void teardown(std::function< void()> body)
Definition teardown.h:12
void define_teardown_fn(FunctionPointer< void()> body)