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)
Sat, Apr 19, 10:48 AM
Unknown Object (File)
Wed, Apr 9, 2:28 AM
Unknown Object (File)
Tue, Apr 8, 12:55 AM
Unknown Object (File)
Mar 20 2025, 2:39 AM
Unknown Object (File)
Mar 19 2025, 11:53 PM
Unknown Object (File)
Feb 10 2025, 8:34 PM
Unknown Object (File)
Feb 9 2025, 6:43 PM
Unknown Object (File)
Feb 5 2025, 11:14 AM
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