aboutsummaryrefslogtreecommitdiff
path: root/include/program.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/program.h')
-rw-r--r--include/program.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/program.h b/include/program.h
index 62e867eb7fb8..3acd5157b127 100644
--- a/include/program.h
+++ b/include/program.h
@@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
- * Copyright (c) 2018-2021 Gavin D. Howard and contributors.
+ * Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -320,6 +320,13 @@ bc_program_free(BcProgram* p);
#endif // NDEBUG
+/**
+ * Prints a stack trace of the bc functions or dc strings currently executing.
+ * @param p The program.
+ */
+void
+bc_program_printStackTrace(BcProgram* p);
+
#if BC_DEBUG_CODE
#if BC_ENABLED && DC_ENABLED