stage4/generate_c/generate_c.cc
changeset 965 c9eeb67ba939
parent 958 7474d2cd1d6e
child 1007 afb3974f8fb3
child 1011 76175defb87b
equal deleted inserted replaced
964:5f4dfe6670da 965:c9eeb67ba939
    51 
    51 
    52 #define STAGE4_ERROR(symbol1, symbol2, ...) {stage4err("while generating C code", symbol1, symbol2, __VA_ARGS__); exit(EXIT_FAILURE);}
    52 #define STAGE4_ERROR(symbol1, symbol2, ...) {stage4err("while generating C code", symbol1, symbol2, __VA_ARGS__); exit(EXIT_FAILURE);}
    53 
    53 
    54 
    54 
    55 /* Macros to access the constant value of each expression (if it exists) from the annotation introduced to the symbol_c object by constant_folding_c in stage3! */
    55 /* Macros to access the constant value of each expression (if it exists) from the annotation introduced to the symbol_c object by constant_folding_c in stage3! */
    56 #define VALID_CVALUE(dtype, symbol)           (symbol_c::cs_const_value == (symbol)->const_value._##dtype.status)
    56 #define VALID_CVALUE(dtype, symbol)           ((symbol)->const_value._##dtype.is_valid())
    57 #define GET_CVALUE(dtype, symbol)             ((symbol)->const_value._##dtype.value) 
    57 #define GET_CVALUE(dtype, symbol)             ((symbol)->const_value._##dtype.get()) 
    58 
    58 
    59 
    59 
    60 
    60 
    61 /***********************************************************************/
    61 /***********************************************************************/
    62 
    62