don't advice functions defined in the same library
Merge pull request #534 from tarsius/no-advice

don't advice functions defined in the same library