emilk / emilk/loguru

Sanity check error

Open
#186 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.9k
Forks
280
Avg merge
7m
Merged PRs (30d)
4

Description

Hi,
I'm trying to initialize loguru using init with '-v WARNING', but it is not agree with it.
I get the following error on initialization:
`loguru.cpp:586 FATL| CHECK FAILED: argv[argc] == nullptr (N/A == N/A) Expected proper argc/argv`
The variables received by init are as follows:
![image](https://user-images.githubusercontent.com/3807655/143718835-6bee5048-0f0f-4d3e-b9f8-ba87a9712ef8.png)
If I comment this check out - everything works as expected.
Anyway, I think you should not check argv[argc] but argv[argc-1] here, but it still fails if I change the line like this. Probably, something goes wrong in your macros...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.