diff --git a/.github/c_traceback.png b/.github/c_traceback.png new file mode 100644 index 0000000..ac8dc80 Binary files /dev/null and b/.github/c_traceback.png differ diff --git a/.github/compilation_info.png b/.github/compilation_info.png deleted file mode 100644 index 7bfd830..0000000 Binary files a/.github/compilation_info.png and /dev/null differ diff --git a/README.md b/README.md index 1ee498e..8add290 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A colorful, lightweight error-propagation framework for C. Documentation Website: [https://www.ctraceback.com](https://www.ctraceback.com) -![C Traceback](.github/compilation_info.png) +![C Traceback](.github/c_traceback.png) ## Features * Beautiful tracebacks diff --git a/examples/example.c b/examples/example.c index bbef4c4..6c07bd9 100644 --- a/examples/example.c +++ b/examples/example.c @@ -13,6 +13,12 @@ int main(void) ctb_clear_context(); ctb_install_signal_handler(); + LOG_WARNING( + CTB_DEPRECATION_WARNING, + "This function is deprecated and will be replaced in the next version" + ); + LOG_MESSAGE("Hello, world!"); + double *vec = malloc(N * sizeof(double)); if (!vec) {