Zig 0.17.0-dev (Split by item)
This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig library itself.
Zig › std/ › debug/ › SelfInfo/ › Windows.zig › dllNotification
dllNotification
Windows.dllNotification
fn dllNotification (
reason : LDR .DLL_NOTIFICATION .REASON ,
data : *const LDR .DLL_NOTIFICATION .DATA ,
context : ?*anyopaque ,
) callconv (.winapi ) void
File
Code
fn dllNotification (
reason : LDR .DLL_NOTIFICATION .REASON ,
data : *const LDR .DLL_NOTIFICATION .DATA ,
context : ?*anyopaque ,
) callconv (.winapi ) void {
const si : *SelfInfo = @ptrCast (@alignCast (context ));
switch (reason ) {
.LOADED => {},
.UNLOADED => {
const io = std .Options .debug_io ;
si .lock .lockUncancelable (io );
defer si .lock .unlock (io );
for (si .modules .items , 0 ..) |*mod , mod_index | {
if (mod .entry .DllBase != data .Unloaded .DllBase ) continue ;
mod .deinit (std .debug .getDebugInfoAllocator (), io );
_ = si .modules .swapRemove (mod_index );
break ;
}
},
}
}