R:/sourcemod/trunk/sourcepawn/include/sp_typeutil.h

00001 #ifndef _INCLUDE_SOURCEPAWN_VM_TYPEUTIL_H_
00002 #define _INCLUDE_SOURCEPAWN_VM_TYPEUTIL_H_
00003 
00004 #include "sp_vm_types.h"
00005 
00006 inline cell_t sp_ftoc(float val)
00007 {
00008         return *(cell_t *)&val;
00009 }
00010 inline float sp_ctof(cell_t val)
00011 {
00012         return *(float *)&val;
00013 }
00014 
00015 #endif //_INCLUDE_SOURCEPAWN_VM_TYPEUTIL_H_

Generated on Thu Jan 4 13:34:37 2007 for SourcePawn JIT by  doxygen 1.5.1-p1