// NOTE: This should not be called until immediately before using the return value.
// This function can return a static variable which will change if this is called
// another time. -brendanfh 2020/10/09
+// :RelativeFiles This should lookup for the file relative to "relative_to"
static char* lookup_included_file(char* filename, char* relative_to) {
static char path[256];
fori (i, 0, 256) path[i] = 0;
return;
}
+ // :RelativeFiles This should be relative to the current directory by default; However,
+ // if the filename is prefixed with a './' or '.\\' then it should be relative to the
+ // file in which is was inclded. The loaded file info above should probably use the full
+ // file path in order to avoid duplicates.
bh_file_contents contents = bh_file_read_contents(global_heap_allocator, fc->filename->text);
u8* actual_data = bh_alloc(global_heap_allocator, contents.length + 1);
u32 length = contents.length + 1;