@@ -174,6 +174,7 @@ static term nif_base64_decode_to_string(Context *ctx, int argc, term argv[]);
174174static term nif_code_load_abs (Context * ctx , int argc , term argv []);
175175static term nif_code_load_binary (Context * ctx , int argc , term argv []);
176176static term nif_code_ensure_loaded (Context * ctx , int argc , term argv []);
177+ static term nif_erlang_nif_error (Context * ctx , int argc , term argv []);
177178static term nif_lists_reverse (Context * ctx , int argc , term argv []);
178179static term nif_maps_from_keys (Context * ctx , int argc , term argv []);
179180static term nif_maps_next (Context * ctx , int argc , term argv []);
@@ -715,6 +716,13 @@ static const struct Nif code_ensure_loaded_nif =
715716 .base .type = NIFFunctionType ,
716717 .nif_ptr = nif_code_ensure_loaded
717718};
719+
720+ static const struct Nif nif_error_nif =
721+ {
722+ .base .type = NIFFunctionType ,
723+ .nif_ptr = nif_erlang_nif_error
724+ };
725+
718726static const struct Nif lists_reverse_nif =
719727{
720728 .base .type = NIFFunctionType ,
@@ -4595,6 +4603,14 @@ static term nif_code_ensure_loaded(Context *ctx, int argc, term argv[])
45954603 return result ;
45964604}
45974605
4606+ static term nif_erlang_nif_error (Context * ctx , int argc , term argv [])
4607+ {
4608+ UNUSED (argc );
4609+ UNUSED (argv );
4610+
4611+ RAISE_ERROR (UNDEF_ATOM );
4612+ }
4613+
45984614static term nif_lists_reverse (Context * ctx , int argc , term argv [])
45994615{
46004616 // Compared to erlang version, compute the length of the list and allocate
0 commit comments