centralized malloc system
This commit is contained in:
25
headers/colors.h
Normal file
25
headers/colors.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef COLORS_H
|
||||
# define COLORS_H
|
||||
|
||||
# define GRAY "\e[0;30m"
|
||||
# define RED "\e[0;31m"
|
||||
# define GREEN "\e[0;32m"
|
||||
# define YELLOW "\e[0;33m"
|
||||
# define BLUE "\e[0;34m"
|
||||
# define PURPLE "\e[0;35m"
|
||||
# define CYAN "\e[0;36m"
|
||||
# define WHITE "\e[0;37m"
|
||||
|
||||
# define B_GRAY "\e[1;30m"
|
||||
# define B_RED "\e[1;31m"
|
||||
# define B_GREEN "\e[1;32m"
|
||||
# define B_YELLOW "\e[1;33m"
|
||||
# define B_BLUE "\e[1;34m"
|
||||
# define B_PURPLE "\e[1;35m"
|
||||
# define B_CYAN "\e[1;36m"
|
||||
# define B_WHITE "\e[1;37m"
|
||||
|
||||
# define RESET "\e[0m"
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
#ifndef CUBE3D_H
|
||||
# define CUBE3D_H
|
||||
|
||||
#include "../libs/libft/includes/libft.h"
|
||||
#include <mlx.h>
|
||||
#include <unistd.h> // for sleep()
|
||||
#include <stdlib.h> // for atoi()
|
||||
#include <stdio.h> // for printf()
|
||||
# include "../libs/libft/includes/libft.h"
|
||||
# include <mlx.h>
|
||||
# include <unistd.h> // for sleep()
|
||||
# include <stdlib.h> // for atoi()
|
||||
# include <stdio.h> // for printf()
|
||||
|
||||
#include "cube3d_macro.h"
|
||||
#include "cube3d_struct.h"
|
||||
#include "cube3d_proto.h"
|
||||
# include "colors.h"
|
||||
|
||||
# include "cube3d_macro.h"
|
||||
# include "cube3d_struct.h"
|
||||
# include "cube3d_proto.h"
|
||||
|
||||
#endif
|
||||
|
||||
@@ -44,6 +44,9 @@ int is_go_backward(int *k_hook);
|
||||
|
||||
// -------------------------------
|
||||
// SRC/FREE
|
||||
void *gmalloc(size_t size);
|
||||
void gfree(void *addr);
|
||||
void gexit(char *str);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user