You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Clean and recompile
./scripts/dev.sh clean
./scripts/dev.sh build
# Run tests
./scripts/dev.sh test# Check memory
./scripts/dev.sh memcheck
4. Making Commits
git add .
git commit -m "[module] description of change"
git push origin dev
🐛 Debugging
Debug Flags
# Compile with debug
make debug
# Compile with sanitizers
make sanitize
Memory Leaks
# Check with valgrind
./scripts/dev.sh memcheck
# Check with AddressSanitizer
make sanitize
./cub3D maps_and_textures/correct_maps/demo.cub
📝 Documentation Standards
Function Comments
/** * Brief description of what the function does * * @param param1 Description of parameter 1 * @param param2 Description of parameter 2 * @return Description of return value */intfunction_name(intparam1, char*param2);
Structure Comments
/** * Represents the main game state * Contains all game objects and rendering data */typedefstructs_game
{
// Game window and renderingvoid*mlx;
void*win;
t_imgimg;
// Player datat_playerplayer;
// ... more fields
} t_game;