Overload delay function

I have a project where I am using many different libraries. So of the libraries have delay() calls in them. I am also using the TimeAlarms library and it uses an Alarm.delay() function so for triggering alarms when they expire.

Instead of going through all the libraries and changing the delay() calls to Alarm.delay() calls can I just include something in my .pde file so all calls to delay() actually use Alarm.delay()?


Actually... You could try #define delay(x) Alarm.delay((x))