D:/production/scol-svn/trunk/tools/plugin sdk/include/Macro.h File Reference

User Scol machine Macro conversion API. More...

Go to the source code of this file.

Defines

#define MTOI(val)   ((val)>>1)
 Convert scol machine value to int.
#define MTOP(val)   ((val)>>1)
 Convert scol machine value to system handle.
#define ITOM(val)   ((val)<<1)
 Convert int to scol machine value.
#define PTOM(val)   (((val)<<1)+1)
 Convert system handle to scol machine value.
#define INVERT(m, a, b)   {tmp_res=MMget(m,a);MMset(m,a,MMget(m,b));MMset(m,b,tmp_res);}
 Invert 2 stack positions in scol machine
need a int tmp_res local variable to work.
#define SEDROP(m, n)   ((m)->pp += (n))
 Move the scol machine stack of n positions.
#define STR_SIZE(size)   (2+((size)>>2))
#define SIZE(t)   ((sizeof(t)+3)>>2)
#define CHECK(m)   if ((tmp_res=m)) return tmp_res

Functions

_inline float MTOF (int val)
 Convert scol machine value to float.
_inline int FTOM (float val)
 Convert float to scol machine value.

Detailed Description

User Scol machine Macro conversion API.

 All Data Structures Files Functions Defines

Generated by  doxygen 1.6.2