This function has to be implemented in the external preprocessor and exported from the DLL/SO file. It has to have the following prototype.
int DLL_EXPORT preproc(void *p, long *pFUN, void *q);