Don't have compiler complain we're returning NULL if we promised not to! */
| 475 | |
| 476 | /* Don't have compiler complain we're returning NULL if we promised not to! */ |
| 477 | static void *null_alloc_failed(void) |
| 478 | { |
| 479 | #ifdef CCAN_TAL_NEVER_RETURN_NULL |
| 480 | abort(); |
| 481 | #else |
| 482 | return NULL; |
| 483 | #endif /* CCAN_TAL_NEVER_RETURN_NULL */ |
| 484 | } |
| 485 | |
| 486 | void *tal_alloc_(const tal_t *ctx, size_t size, bool clear, const char *label) |
| 487 | { |
no test coverage detected