mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin, compiler: replace isnil(x) calls with x == unsafe { nil }
(a little faster without -prod) (#15759)
This commit is contained in:
@ -42,7 +42,7 @@ pub struct PoolProcessorConfig {
|
||||
// 3) task_id - the index of the worker thread in which the callback
|
||||
// function is running.
|
||||
pub fn new_pool_processor(context PoolProcessorConfig) &PoolProcessor {
|
||||
if isnil(context.callback) {
|
||||
if context.callback == unsafe { nil } {
|
||||
panic('You need to pass a valid callback to new_pool_processor.')
|
||||
}
|
||||
mut pool := PoolProcessor{
|
||||
|
Reference in New Issue
Block a user