浏览代码

Add contextless to another proc

gingerBill 1 月之前
父节点
当前提交
78290ceef3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      core/os/os2/file_linux.odin

+ 2 - 2
core/os/os2/file_linux.odin

@@ -45,8 +45,8 @@ _stderr := File{
 }
 
 @init
-_standard_stream_init :: proc() {
-	new_std :: proc(impl: ^File_Impl, fd: linux.Fd, name: string) -> ^File {
+_standard_stream_init :: proc "contextless" () {
+	new_std :: proc "contextless" (impl: ^File_Impl, fd: linux.Fd, name: string) -> ^File {
 		impl.file.impl = impl
 		impl.fd = linux.Fd(fd)
 		impl.allocator = runtime.nil_allocator()