[*] Here wasn't the best place to demo AuUnsafeRaiiToShared

This commit is contained in:
Reece Wilson 2021-10-28 21:38:03 +00:00
parent 1d158614bd
commit a398b4eb24

View File

@ -52,14 +52,11 @@ static AuSPtr<IInputMouseSubscriber> MyMouseSubscriber()
#### Usage: Runtime bindings and modern C++
``` c++
// My language binding
IInputMouseSubscriberFunctional test;
test.onButtonPress = [](AuUInt8 btn)
auto test = AuMakeShared<IInputMouseSubscriberFunctional>();
test->onButtonPress = [](AuUInt8 btn)
{
};
AuSPtr<IInputMouseSubscriber> handle = AuUnsafeRaiiToShared(&test);
// use handle with an Aurora API
```
## Dependencies