42_Scale

a small software to create and edit 42 (.yaml) scale files easily
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/42_Scale

commit f958842ceb1770a939adbe16855ec4f49ff74964
parent 17407012cd080e3be73a6b428461f2315cb39d9c
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Fri, 22 Apr 2016 18:33:50 +0200

Fix(Backtrace): Smooth color for bt (useless commit #1)

Diffstat:
Msrcs/helpers.c | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/srcs/helpers.c b/srcs/helpers.c @@ -5,10 +5,12 @@ void print_trace(void) { size_t size; char **strings; - size = backtrace (array, 10); - strings = backtrace_symbols (array, size); - printf ("\033[0;32m> \033[0m Printing backtrace ...\n"); + size = backtrace(array, 10); + strings = backtrace_symbols(array, size); + printf("\033[0;32m> \033[0m Printing backtrace ...\n\e[37m"); +# define NK_IMPLEMENTATION for (size_t i = 0; i < size; i++) - printf ("%s\n", strings[i]); - free (strings); + printf("%s\n", strings[i]); + free(strings); + printf("\033[0m"); }