From a398b4eb2477f09f4bc861e33e54c13a3ddf1081 Mon Sep 17 00:00:00 2001 From: Reece Wilson Date: Thu, 28 Oct 2021 21:38:03 +0000 Subject: [PATCH] [*] Here wasn't the best place to demo AuUnsafeRaiiToShared --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4fc1f3d..72fbfe8 100644 --- a/README.md +++ b/README.md @@ -52,14 +52,11 @@ static AuSPtr MyMouseSubscriber() #### Usage: Runtime bindings and modern C++ ``` c++ // My language binding -IInputMouseSubscriberFunctional test; -test.onButtonPress = [](AuUInt8 btn) +auto test = AuMakeShared(); +test->onButtonPress = [](AuUInt8 btn) { }; - -AuSPtr handle = AuUnsafeRaiiToShared(&test); -// use handle with an Aurora API ``` ## Dependencies