This commit is contained in:
2025-07-25 02:25:23 -04:00
parent 21a1bac8cd
commit 21714571f9
2 changed files with 4 additions and 1 deletions

View File

@@ -1682,6 +1682,9 @@ api_watl_lex :: proc(info: ^WATL_LexInfo, source: string,
prev = src_cursor[-1:]
code = src_cursor[0]
}
assert(tok != nil)
assert(num > 0)
info.toks = transmute([]string) slice(cursor(tok)[- num + 1:], num)
return
slice_constraint_fail :: proc(info: ^WATL_LexInfo, ainfo_msgs: AllocatorInfo, tok: ^Raw_String, msg_last: ^^WATL_LexMsg) {
info.signal |= { .MemFail_SliceConstraintFail }

View File

@@ -97,7 +97,7 @@ main :: proc() {
path_root := get_working_dir()
path_build := join_path(path_root, "build")
path_odin_src := join_path(path_root, "Odin")
file_source := join_path(path_odin_src, "watl.v0.odin")
file_source := join_path(path_odin_src, "watl.v0.win32.odin")
file_exe := join_path(path_build, "watl.v0.exe")
res, errs := build(path_build, {