| 206 | } |
| 207 | |
| 208 | static struct splice_script_error *debug_dump(const tal_t *ctx, |
| 209 | struct token **tokens) |
| 210 | { |
| 211 | struct splice_script_error *error = tal(ctx, |
| 212 | struct splice_script_error); |
| 213 | |
| 214 | error->type = DEBUG_DUMP; |
| 215 | error->script_index = 0; |
| 216 | error->message = tal_strdup(error, ""); |
| 217 | |
| 218 | for (size_t i = 0; i < tal_count(tokens); i++) |
| 219 | dump_token(&error->message, tokens[i], 0, "- "); |
| 220 | |
| 221 | return error; |
| 222 | } |
| 223 | #endif /* SCRIPT_DUMP_TOKENS */ |
| 224 | |
| 225 | #if SCRIPT_DUMP_SEGMENTS |
no test coverage detected