Skip to content

Commit

Permalink
crash_test_cpp_nullptr_exception()
Browse files Browse the repository at this point in the history
  • Loading branch information
aardappel committed Oct 20, 2023
1 parent 62868ba commit 7d681bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dev/src/builtins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,12 @@ nfr("thread_read", "type", "T", "A1?",
return vm.WorkerRead((type_elem_t)t.ival());
});

nfr("crash_test_cpp_nullptr_exception", "", "", "",
"only for testing crash dump functionality, don\'t use! :)",
[](StackPtr &, VM &) {
*(char *)nullptr = 0;
});

} // AddBuiltins


Expand Down

0 comments on commit 7d681bd

Please sign in to comment.