When a function doesn't have hooks,the with-hooks-disabled macro will throw an exception.
I think it should not throw this exception,i don't care if the function has hooks, maybe i want to add the hooks later or maybe i will remove the hooks in future.When i removed,i have to modify the code to remove with-hooks-disabled invocation.
So,can you provide an option to ignore the exception? or modify the default behavior?
When a function doesn't have hooks,the
with-hooks-disabled
macro will throw an exception.I think it should not throw this exception,i don't care if the function has hooks, maybe i want to add the hooks later or maybe i will remove the hooks in future.When i removed,i have to modify the code to remove
with-hooks-disabled
invocation.So,can you provide an option to ignore the exception? or modify the default behavior?
Thanks.