From 223b1056273f5d48d1c0bbfee75be7b82374d4eb Mon Sep 17 00:00:00 2001 From: pryazha Date: Sun, 12 Oct 2025 15:24:30 +0500 Subject: change identation, maybe will change back, add own gl functions loading, and glx example --- example/sys.c | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 example/sys.c (limited to 'example/sys.c') diff --git a/example/sys.c b/example/sys.c deleted file mode 100644 index 881d2be..0000000 --- a/example/sys.c +++ /dev/null @@ -1,30 +0,0 @@ -#include "prb.h" -#include -#include - -i32 main(int c, char **v) -{ - info("os:"); - switch (os) { - case os_linux: - info("linux"); - break; - case os_windows: - info("windows"); - break; - default: - info("unsupported"); - return 1; - } - char *dir = dirname(*v); - info("bin directory \"%s\"", dir); - const char *filename = "build.sh"; - char path[1024] = {0}; - snprintf(path, 1024, "%s/%s", dir, filename); - struct arena arena = alloc_arena(megabytes(32)); - char *content = 0; - if (!(content = read_entire_file(&arena, 0, path))) - die("failed to read %s", path); - info("%s content:\n%s", path, content); - return 0; -} -- cgit v1.2.3-70-g09d2