17 lines
197 B
C++
17 lines
197 B
C++
#include "sp.h"
|
|
|
|
std::shared_ptr<Foo> g_foo;
|
|
|
|
void function_that_takes_foo(std::shared_ptr<Foo> foo)
|
|
{
|
|
g_foo = foo;
|
|
}
|
|
|
|
std::shared_ptr<Foo> function_that_returns_foo()
|
|
{
|
|
return g_foo;
|
|
}
|
|
|
|
|
|
|