[*] Here wasn't the best place to demo AuUnsafeRaiiToShared
This commit is contained in:
parent
1d158614bd
commit
a398b4eb24
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user