Page MenuHomeFreeBSD

loader: Simplify the loader.has_command
ClosedPublic

Authored by imp on Feb 10 2024, 6:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Feb 20, 9:59 PM
Unknown Object (File)
Sun, Feb 8, 6:12 PM
Unknown Object (File)
Jan 19 2026, 4:55 PM
Unknown Object (File)
Dec 20 2025, 8:53 AM
Unknown Object (File)
Dec 14 2025, 11:23 AM
Unknown Object (File)
Dec 3 2025, 5:28 AM
Unknown Object (File)
Nov 26 2025, 12:25 AM
Unknown Object (File)
Nov 19 2025, 11:11 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