correct usage of calling convention/export macros for wr project