-
-
Notifications
You must be signed in to change notification settings - Fork 82
Conversation
@@ -10,8 +10,7 @@ while (/^(\N*)\V*fn\s+(\w+)\s*(<[^(]+>)?\s*(\([^{;]+)\{\N*\n^(\N*)$/gms) { | |||
$first_line =~ /^\s*( | |||
assert_initialized_main_thread | | |||
assert_not_initialized | | |||
skip_assert_initialized | | |||
callback_guard | |||
skip_assert_initialized |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsafe functions just not checked, so this line not worked anyway
let _guard = ::glib::CallbackGuard::new(); | ||
if cfg!(debug_assertions) { | ||
assert_initialized_main_thread!(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I slightly worry about this check, maybe it really needed
Yes but it should not be in the callback guard macro. I thought there was another macro for that? |
This macro named |
They are and it makes no sense to check that in the callback. It would be a gtk bug and not ours, not something we should try to detect |
Ok, then I think that PR is ready |
Remove callback guard
Start of user callbacks generation
Part of gtk-rs/glib#250
cc @GuillaumeGomez, @sdroege