tweak main function
This commit is contained in:
parent
26eb9170f7
commit
76b6acdf80
9
kilo
9
kilo
@ -21,8 +21,8 @@ spl_autoload_register(static function ($class) {
|
||||
}
|
||||
});
|
||||
|
||||
function main(int $argc, array $argv): int
|
||||
{
|
||||
// ! Init with an IIFE
|
||||
return (static function (int $argc, array $argv): int {
|
||||
enable_raw_mode();
|
||||
|
||||
$editor = Editor::new();
|
||||
@ -46,7 +46,4 @@ function main(int $argc, array $argv): int
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//! Init
|
||||
main($argc, $argv);
|
||||
})($argc, $argv);
|
||||
|
Loading…
Reference in New Issue
Block a user