add libpike and some main testing

This commit is contained in:
2025-11-08 09:19:14 -05:00
parent e6ed3ed5d8
commit 10edb85219
4 changed files with 260 additions and 1 deletions

11
libpike/util/util.odin Normal file
View File

@@ -0,0 +1,11 @@
package util
import "core:strings"
basename :: proc(path: string) -> string {
idx := strings.last_index_byte(path, '/')
if idx < 0 {
return path
}
return path[idx+1:]
}