#include "segment.h"
Defines | |
#define | ANALYZE_VARS_IN_COMPOUND_ASSIGN_OP(Operator) |
#define | ANALYZE_VARS_IN_BINARY_OP(Operator) |
#define | ANALYZE_VARS_IN_UNARY_OP(Operator) |
#define | ANALYZE_VARS_IN_UNARY_INC_DEC_OP(Operator) |
#define | ANALYZE_VARS_IN_ACCESS_OP(Operator) |
#define ANALYZE_VARS_IN_ACCESS_OP | ( | Operator | ) |
if(is##Operator(expression)) { \ Operator *op = is##Operator(expression); \ analyze_expression(op->get_rhs_operand(), left_of_assignment, \ read_write, member_access || false); \ analyze_expression(op->get_lhs_operand(), left_of_assignment, \ read_write, true); \ return; \ }
#define ANALYZE_VARS_IN_BINARY_OP | ( | Operator | ) |
if(is##Operator(expression)) { \ Operator *op = is##Operator(expression); \ analyze_expression(op->get_lhs_operand(), false, false, false); \ analyze_expression(op->get_rhs_operand(), false, false, false); \ return; \ }
#define ANALYZE_VARS_IN_COMPOUND_ASSIGN_OP | ( | Operator | ) |
if(is##Operator(expression)) { \ Operator *op = is##Operator(expression); \ analyze_expression(op->get_lhs_operand(), true, false, false); \ analyze_expression(op->get_lhs_operand(), false, false, false); \ analyze_expression(op->get_rhs_operand(), false, false, false); \ return; \ }
#define ANALYZE_VARS_IN_UNARY_INC_DEC_OP | ( | Operator | ) |
if(is##Operator(expression)) { \ Operator *op = is##Operator(expression); \ analyze_expression(op->get_operand(), false, true, false); \ return; \ }
#define ANALYZE_VARS_IN_UNARY_OP | ( | Operator | ) |
if(is##Operator(expression)) { \ Operator *op = is##Operator(expression); \ analyze_expression(op->get_operand(), false, false, false); \ return; \ }