ad-should-compile

ad-should-compile is a compiled Lisp function in `advice.el'.

(ad-should-compile FUNCTION COMPILE)

Return non-nil if the advised FUNCTION should be compiled.
If COMPILE is non-nil and not a negative number then it returns t.
If COMPILE is a negative number then it returns nil.
If COMPILE is nil then the result depends on the value of
`ad-default-compilation-action' (which see).