More work on signal: the C++ part is working

This commit is contained in:
Olivier Goffart 2020-05-20 18:21:12 +02:00
parent 83d206ea39
commit 4575011293
15 changed files with 166 additions and 59 deletions

View file

@ -31,11 +31,11 @@ struct Property
{
internal::sixtyfps_property_set_binding(
&inner,
[](const void *user_data, const void *value) {
[](void *user_data, const void *value) {
*reinterpret_cast<T *>(value) = (*reinterpret_cast<F *>(user_data))();
},
new F(binding),
[](const void *user_data) { delete reinterpret_cast<F *>(user_data); });
[](void *user_data) { delete reinterpret_cast<F *>(user_data); });
}
private: