mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Reduce number of range and slice operators #239
Replace .. and ... with : and ..
This commit is contained in:
@@ -46,7 +46,7 @@ _libgl := win32.load_library_a("opengl32.dll");
|
||||
|
||||
get_gl_proc_address :: proc(name: string) -> rawptr {
|
||||
if name[len(name)-1] == 0 {
|
||||
name = name[..len(name)-1];
|
||||
name = name[:len(name)-1];
|
||||
}
|
||||
// NOTE(bill): null terminated
|
||||
assert(mem.ptr_offset(&name[0], cast(uintptr)len(name))^ == 0);
|
||||
|
||||
Reference in New Issue
Block a user