add the snippets to the repo

This commit is contained in:
2025-07-19 20:52:05 +02:00
parent ae0286e4c8
commit 0a3ea56838
22 changed files with 1735 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
snippet raylib
${2:game}: ${1:main.c}
cc ${1:main.c} -o ${2:game} -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
clean:
rm ./${2:game}
run: ${2:game}
./${2:game}
snippet test
test: test.c
@cc -o test test.c
@./test || (rm -f test && $(MAKE) --no-print-directory clean && exit 1)