forked from enlightenment/efl
a sane version of the EmbryoCell to float (and vice versa) macros
SVN revision: 11870
This commit is contained in:
parent
a8ea9cd5a3
commit
0fdc3f087a
|
@ -48,15 +48,20 @@ extern "C" {
|
|||
#define EMBRYO_PROGRAM_BUSY 3
|
||||
#define EMBRYO_PROGRAM_FAIL 0
|
||||
|
||||
/** Float to Embryo_Cell */
|
||||
#define EMBRYO_FLOAT_TO_CELL(f) ( *((Embryo_Cell*)&f))
|
||||
/** Embryo_Cell to float */
|
||||
#define EMBRYO_CELL_TO_FLOAT(c) ( *((float*)&c))
|
||||
|
||||
typedef unsigned int Embryo_UCell;
|
||||
typedef int Embryo_Cell;
|
||||
typedef struct _Embryo_Program Embryo_Program;
|
||||
typedef int Embryo_Function;
|
||||
|
||||
typedef union {
|
||||
float f;
|
||||
Embryo_Cell c;
|
||||
} FloatEmbryoCell;
|
||||
|
||||
/** Float to Embryo_Cell */
|
||||
#define EMBRYO_FLOAT_TO_CELL(f) ((FloatEmbryoCell) f).c
|
||||
/** Embryo_Cell to float */
|
||||
#define EMBRYO_CELL_TO_FLOAT(c) ((FloatEmbryoCell) c).f
|
||||
|
||||
int embryo_init(void);
|
||||
int embryo_shutdown(void);
|
||||
|
|
Loading…
Reference in New Issue