| 260 | } // namespace |
| 261 | |
| 262 | absl::Status RegisterComparisonFunctions(FunctionRegistry& registry, |
| 263 | const RuntimeOptions& options) { |
| 264 | if (options.enable_heterogeneous_equality) { |
| 265 | CEL_RETURN_IF_ERROR(RegisterHeterogeneousComparisonFunctions(registry)); |
| 266 | } else { |
| 267 | CEL_RETURN_IF_ERROR(RegisterHomogenousComparisonFunctions(registry)); |
| 268 | } |
| 269 | return absl::OkStatus(); |
| 270 | } |
| 271 | |
| 272 | } // namespace cel |