Page MenuHomeFreeBSD

loader: Simplify the loader.has_command
ClosedPublic

Authored by imp on Feb 10 2024, 6:31 PM.
Tags
None
Referenced Files
F131798931: D43820.diff
Sat, Oct 11, 6:24 AM
Unknown Object (File)
Mon, Sep 29, 11:50 AM
Unknown Object (File)
Sat, Sep 27, 6:26 PM
Unknown Object (File)
Fri, Sep 26, 11:54 PM
Unknown Object (File)
Sun, Sep 21, 4:06 AM
Unknown Object (File)
Mon, Sep 15, 2:35 PM
Unknown Object (File)
Sep 2 2025, 8:01 AM
Unknown Object (File)
Aug 30 2025, 3:41 PM
Subscribers

Details

Summary

luaL_checkstring already checks for the right number of
arguments. There's no need to do that by hand here. Now an exception
will be thrown like any other function with the wrong args. Also,
push a boolean instead of an int.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable