Skip to content

Commit ef93f6a

Browse files
Remove INTERNAL_STOP
1 parent 826ab8c commit ef93f6a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/fwrite.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,8 @@ void fwriteMain(fwriteMainArgs args)
686686
case WF_List:
687687
width = getMaxListItemLen(args.columns[j], args.nrow);
688688
break;
689-
default: // # nocov
690-
INTERNAL_STOP("type %d has no max length method implemented", args.whichFun[j]); // # nocov
689+
default: // #nocov
690+
STOP(_("type %d has no max length method implemented"), args.whichFun[j]); // # nocov
691691
}
692692
}
693693
if (args.whichFun[j] == WF_Float64 && args.scipen > 0)

src/fwrite.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#include "po.h"
1010
#define STOP error
1111
#define DTPRINT Rprintf
12-
static char internal_error_buff[256] __attribute__((unused)); // todo: fix imports such that compiler warns correctly #6468
13-
#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)
1412
#endif
1513

1614
typedef void writer_fun_t(const void *, int64_t, char **);

0 commit comments

Comments
 (0)