#ifndef GPIB_PARSER_CASTS_H
#define GPIB_PARSER_CASTS_H

    #include "main.h"

    #ifndef TRUE
    #define TRUE   (true)
    #endif
    
    #ifndef FALSE
    #define FALSE  (false)
    #endif
    
    #define TernaryOperator(bool_expression,true_cond_value,false_cond_value) \
                        ((bool_expression)?(true_cond_value):(false_cond_value))
                        
    #define MAKE_BOOL(expression)       TernaryOperator(expression, TRUE, FALSE)


    /* #define TOINT(A) ((int)(A))              */
    /* #define TOPINT(A) ((int*)(A))            */
     #define TOUINT(A) ((unsigned int)(A))    
    /* #define TOPUINT(A) ((unsigned int *)(A)) */
    /* #define TOCHAR(A) ((char)(A))            */
    /* #define TOPCHAR(A) ((char*)(A))          */

#endif