-
-
Notifications
You must be signed in to change notification settings - Fork 82
Conversation
And here comes the monstruous thing... I forgot to ask : does your script takes in account the fact the macro is already called or does it just add it without checking ? |
The script is a fancy specialized version of grep. It will fail the test if a non-method is missing the assert. Macro invocations were added semi-automatically by a variation of that regex. |
This is the script, that helps me do these kinds of sweeping 'refactorings'. A long time ago when starting to tinker with rgtk I was intending to make a graphical tool in Rust for this but this script does the job mostly. |
We should think about adding a repo for all these scripts, don't you think ? |
Dunno. The replacer script is pretty generic and spartan. Anything else? |
The |
Yeah perhaps. |
Methods and functions that take GTK objects as arguments don't need this check. Add a script, that ensures the asserts are present or explicitly skipped.
Added callback guard. This completes the safety fixes I had in mind for now. |
Update to last rustc version
Remove unneeded generated end extra line and add extra empty lines between trait function declarations
main_quit
safe.Fix #187 and #188