---
layout: doc
title: system / max_eval_cost
---
# max_eval_cost

### NAME

    max_eval_cost() - returns the maximum evaluation cost

### SYNOPSIS

    int max_eval_cost()

### DESCRIPTION

    max_eval_cost() returns the number of instructions that can be executed
    before the driver decides it is in an infinite loop.

### SEE ALSO

    catch(3),  error(3),  throw(3),  error_handler(4),   set_eval_limit(3),
    reset_eval_cost(3)
