We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff29fdd commit df88df9Copy full SHA for df88df9
c_src/driver_comm.c
@@ -55,7 +55,7 @@ char *read_string(char **data) {
55
void *ejs_alloc(ErlDrvSizeT size) {
56
void *p = driver_alloc(size);
57
if (p == NULL) {
58
- erl_exit(1, "erlang_js: Can't allocate %lu bytes of memory\n", size);
+ erts_exit(1, "erlang_js: Can't allocate %lu bytes of memory\n", size);
59
}
60
return p;
61
c_src/driver_comm.h
@@ -30,7 +30,7 @@ char *read_string(char **data);
30
31
/* Wrapper around driver_alloc() that checks */
32
/* for OOM. */
33
-void erl_exit(int n, char*, ...);
+void erts_exit(int n, char*, ...);
34
void *ejs_alloc(ErlDrvSizeT size);
35
36
#endif
0 commit comments