Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion c/tskit/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ FILE *
tsk_get_debug_stream(void)
{
if (_tsk_debug_stream == NULL) {
_tsk_debug_stream = stdout;
_tsk_debug_stream = TSK_DEFAULT_DEBUG_STREAM;
}
return _tsk_debug_stream;
}
Expand Down
8 changes: 7 additions & 1 deletion c/tskit/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ disallowed (use compute_mutation_times?).
*/
#define TSK_ERR_DISALLOWED_UNKNOWN_MUTATION_TIME -510

/**
/**
A mutation's parent was not consistent with the topology of the tree.
*/
#define TSK_ERR_BAD_MUTATION_PARENT -511
Expand Down Expand Up @@ -971,6 +971,12 @@ not be freed by client code.
*/
const char *tsk_strerror(int err);

/* Redefine this macro in downstream builds if stdout is not the
* approriate stream to emit debug information when the TSK_DEBUG
* flag is passed to supporting functions (e.g. in R).
*/
#define TSK_DEFAULT_DEBUG_STREAM stdout

#ifdef TSK_TRACE_ERRORS

static inline int
Expand Down