Im currently correcting warnings on source code on Visual Studio.net 2003.
Im down to the last 4, but I dont know what it is. This is the warning:
And the code its refering to in pentime.h is:Quote:
Compiling...
d3d_render.cpp
3dc\win95\PENTIME.H(13) : warning C4068: unknown pragma
3dc\win95\PENTIME.H(18) : warning C4068: unknown pragma
3dc\win95\PENTIME.H(23) : warning C4068: unknown pragma
3dc\win95\PENTIME.H(36) : warning C4068: unknown pragma
So is this assembly and is it for Watcom compilers? And if so can I convert this to Visual Studio?Code://pentime.h
extern unsigned long int rdtsc_lo(void);
extern unsigned long int rdtsc_hi(void);
extern unsigned long int rdtsc_mid(void);
#define ProfileStart() \
{ \
int time = rdtsc_lo();
#define ProfileStop(x) \
textprint("%s %d\n",x,rdtsc_lo()-time); \
}
#pragma aux rdtsc_lo = \
"db 0fh, 31h" \
value [eax] \
modify [edx];
#pragma aux rdtsc_hi = \
"db 0fh, 31h" \
value [edx] \
modify [eax];
#pragma aux rdtsc_mid = \
"db 0fh, 31h" \
"shr eax, 10h" \
"shl edx, 10h" \
"add eax, edx" \
value [eax] \
modify [edx];
Thanks.