mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-06-15 08:26:16 +08:00
🎨 Committing clang-format changes
This commit is contained in:
parent
ceab9c30bf
commit
a4e775a024
@ -357,9 +357,13 @@ TEST_CASE("Functor cast") {
|
|||||||
namespace {
|
namespace {
|
||||||
int shared_ptr_callback_observed_value = 0;
|
int shared_ptr_callback_observed_value = 0;
|
||||||
|
|
||||||
void shared_ptr_callback_accept(const std::shared_ptr<int> &ptr) { shared_ptr_callback_observed_value = ptr ? *ptr : 0; }
|
void shared_ptr_callback_accept(const std::shared_ptr<int> &ptr) {
|
||||||
|
shared_ptr_callback_observed_value = ptr ? *ptr : 0;
|
||||||
|
}
|
||||||
|
|
||||||
void shared_ptr_callback_call(const std::function<void(const std::shared_ptr<int> &)> &func) { func(std::make_shared<int>(42)); }
|
void shared_ptr_callback_call(const std::function<void(const std::shared_ptr<int> &)> &func) {
|
||||||
|
func(std::make_shared<int>(42));
|
||||||
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
// Regression for https://github.com/ChaiScript/ChaiScript/issues/493 - shared_ptr
|
// Regression for https://github.com/ChaiScript/ChaiScript/issues/493 - shared_ptr
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user