1 #include <frith/variable.hpp>
5 #define LOGICAL_OPERATOR(name, operator) \
9 if(get_boolean_value(left_value) && argument.other.get_boolean_value(right_value)) \
11 argument.output.new_boolean(left_value operator right_value); \
16 argument.error_message = get_unary_argument_type_error(name, type); \
20 bool variable::logical_and(binary_argument
& argument
) const
22 LOGICAL_OPERATOR("Logical and", &&)
25 bool variable::logical_or(binary_argument
& argument
) const
27 LOGICAL_OPERATOR("Logical or", ||)