Added calling convention to debug callback.
Authored by: crowbar27 2016-04-19
Parent: [r786]
Child: [r788]