Define an error function in the PPC simulator library.