Skip to content

Commit

Permalink
Remove INTERNAL_STOP
Browse files Browse the repository at this point in the history
  • Loading branch information
philippechataignon committed Jan 10, 2025
1 parent 826ab8c commit ef93f6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/fwrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,8 @@ void fwriteMain(fwriteMainArgs args)
case WF_List:
width = getMaxListItemLen(args.columns[j], args.nrow);
break;
default: // # nocov
INTERNAL_STOP("type %d has no max length method implemented", args.whichFun[j]); // # nocov
default: // #nocov
STOP(_("type %d has no max length method implemented"), args.whichFun[j]); // # nocov
}
}
if (args.whichFun[j] == WF_Float64 && args.scipen > 0)
Expand Down
2 changes: 0 additions & 2 deletions src/fwrite.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#include "po.h"
#define STOP error
#define DTPRINT Rprintf
static char internal_error_buff[256] __attribute__((unused)); // todo: fix imports such that compiler warns correctly #6468
#define INTERNAL_STOP(...) do {snprintf(internal_error_buff, 255, __VA_ARGS__); error("%s %s: %s. %s", _("Internal error in"), __func__, internal_error_buff, _("Please report to the data.table issues tracker"));} while (0)
#endif

typedef void writer_fun_t(const void *, int64_t, char **);
Expand Down

0 comments on commit ef93f6a

Please sign in to comment.