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)
Mon, Jan 20, 11:25 PM
Unknown Object (File)
Nov 17 2024, 3:09 PM
Unknown Object (File)
Oct 22 2024, 11:55 AM
Unknown Object (File)
Oct 21 2024, 4:55 PM
Unknown Object (File)
Oct 19 2024, 1:30 PM
Unknown Object (File)
Oct 19 2024, 1:29 PM
Unknown Object (File)
Oct 19 2024, 1:09 PM
Unknown Object (File)
Oct 6 2024, 10:43 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