Make include paths relative to their file and update README

This commit is contained in:
2025-10-14 11:23:51 +02:00
parent a6ed64835f
commit 012b7b1d25
3 changed files with 266 additions and 20 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ int main(int argc, char **argv)
*file_tail = file;
file_tail = &file->next;
WL_AddResult res = wl_compiler_add(c, (WL_String) { file->data, file->size });
WL_AddResult res = wl_compiler_add(c, path, (WL_String) { file->data, file->size });
if (res.type == WL_ADD_ERROR) {
fprintf(stderr, "Error: %s\n", wl_compiler_error(c).ptr);
return -1;