Page MenuHomeFreeBSD

lualoader: provide loader.exit()
Needs ReviewPublic

Authored by kevans on Nov 2 2019, 4:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 31 2023, 12:44 AM
Unknown Object (File)
Dec 28 2023, 7:00 PM
Unknown Object (File)
Nov 29 2023, 12:29 AM
Unknown Object (File)
Nov 9 2023, 2:57 AM
Unknown Object (File)
Nov 7 2023, 2:48 AM
Unknown Object (File)
Nov 5 2023, 4:54 PM
Unknown Object (File)
Nov 2 2023, 7:22 AM
Unknown Object (File)
Oct 6 2023, 1:46 AM

Details

Summary

After rS354247, we can effectively use a special error to indicate to the caller that we should just return since we have no further special pcall contexts. This may be used by vendors to exit without having to plumb a special value up through local.lua (however they may have it structured) out to try_include and ultimately loader.lua. It may also be used in the future for the escape to loader prompt, ensuring a quick and speedy escape.

The special value is arbitrary, just ensuring we don't collide with any other potential error that may be thrown. Lua only uses strings for errors, so the odds are low of collision anyways. For numeric values that aren't our special value(s), we just print the number rather than declaring the error 'unknown' as we have been.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 27317