1#include <xplatform.h>
2#include <stdio.h>
3#include <stdlib.h>
4#include <string.h>
5
6typedef void *voidPtr;
7
8extern "C" DLL_EXPORT long __cdecl CdeclEnum(int r,BOOL *result)
9{
10 if(r != 3)
11 {
12 printf("\nThe enum value is different from expected one\n");
13 *(result)= FALSE;
14 return 0;
15 }
16 return r;
17}
18
19
20extern "C" DLL_EXPORT voidPtr __cdecl GetFptr(int i)
21{
22 return (voidPtr) &CdeclEnum;
23}
24