| ... | ... | @@ -5184,7 +5184,8 @@ export fn sub(a: i8, b: i8) i8 { return a - b; } |
| 5184 | 5184 | |
| 5185 | 5185 | // The extern specifier is used to declare a function that will be resolved |
| 5186 | 5186 | // at link time, when linking statically, or at runtime, when linking |
| 5187 | | // dynamically. |
| 5187 | // dynamically. The quoted identifier after the extern keyword specifies |
| 5188 | // the library that has the function. (e.g. "c" -> libc.so) |
| 5188 | 5189 | // The callconv specifier changes the calling convention of the function. |
| 5189 | 5190 | const WINAPI: std.builtin.CallingConvention = if (native_arch == .x86) .Stdcall else .C; |
| 5190 | 5191 | extern "kernel32" fn ExitProcess(exit_code: u32) callconv(WINAPI) noreturn; |