MCPcopy Create free account
hub / github.com/ElementsProject/lightning / new_error_offset

Function new_error_offset

common/splice_script.c:257–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255#endif /* SCRIPT_DUMP_SEGMENTS */
256
257static struct splice_script_error *new_error_offset(const tal_t *ctx,
258 enum splice_script_error_type type,
259 struct token *token,
260 const char *phase,
261 int index_offset)
262{
263 struct splice_script_error *error = tal(ctx, struct splice_script_error);
264
265 error->type = type;
266 error->script_index = token->script_index + index_offset;
267 error->message = tal_strdup(error, "");
268 error->phase = phase;
269
270 return error;
271}
272
273static struct splice_script_error *new_error(const tal_t *ctx,
274 enum splice_script_error_type type,

Callers 4

new_errorFunction · 0.85
process_top_separatorsFunction · 0.85
process_2nd_separatorsFunction · 0.85
process_3rd_separatorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected