std.builtin: rename Type.Fn's args to params
This was a poor naming choice; these are parameters, not arguments. Parameters specify what kind of arguments are expected, whereas the arguments are the actual values passed.
This commit is contained in:
@@ -634,7 +634,7 @@ pub fn callMain() u8 {
|
||||
}
|
||||
|
||||
pub fn call_wWinMain() std.os.windows.INT {
|
||||
const MAIN_HINSTANCE = @typeInfo(@TypeOf(root.wWinMain)).Fn.args[0].type.?;
|
||||
const MAIN_HINSTANCE = @typeInfo(@TypeOf(root.wWinMain)).Fn.params[0].type.?;
|
||||
const hInstance = @ptrCast(MAIN_HINSTANCE, std.os.windows.kernel32.GetModuleHandleW(null).?);
|
||||
const lpCmdLine = std.os.windows.kernel32.GetCommandLineW();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user