* geterrposition --- return the currently set error position (0 if none) * * This is only intended for use in error callback subroutines, since there * is no other place outside elog.c where the concept is meaningful. */
| 1650 | * is no other place outside elog.c where the concept is meaningful. |
| 1651 | */ |
| 1652 | int |
| 1653 | geterrposition(void) |
| 1654 | { |
| 1655 | ErrorData *edata = &errordata[errordata_stack_depth]; |
| 1656 | |
| 1657 | /* we don't bother incrementing recursion_depth */ |
| 1658 | CHECK_STACK_DEPTH(); |
| 1659 | |
| 1660 | return edata->cursorpos; |
| 1661 | } |
| 1662 | |
| 1663 | /* |
| 1664 | * getinternalerrposition --- same for internal error position |
no outgoing calls
no test coverage detected