mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix incorrect priority filtering. Move ??? to features.
This commit is contained in:
@@ -137,7 +137,7 @@ macro void init()
|
|||||||
fn void call_log(LogPriority prio, LogCategory category, String fmt, args...)
|
fn void call_log(LogPriority prio, LogCategory category, String fmt, args...)
|
||||||
{
|
{
|
||||||
LogPriority priority = mem::@atomic_load(config_priorities[category], UNORDERED);
|
LogPriority priority = mem::@atomic_load(config_priorities[category], UNORDERED);
|
||||||
if (priority < prio) return;
|
if (priority > prio) return;
|
||||||
init();
|
init();
|
||||||
bool locked = logger_mutex.is_initialized() && @ok(logger_mutex.lock());
|
bool locked = logger_mutex.is_initialized() && @ok(logger_mutex.lock());
|
||||||
Logger logger = current_logger;
|
Logger logger = current_logger;
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
- Deprecated `@typeis` macro in favour of `$typeof(#foo) == int`.
|
- Deprecated `@typeis` macro in favour of `$typeof(#foo) == int`.
|
||||||
- `$defined(#hash)` will not check the internal expression, just that `#hash` exists. Use `$defined((void)#hash)` for the old behaviour.
|
- `$defined(#hash)` will not check the internal expression, just that `#hash` exists. Use `$defined((void)#hash)` for the old behaviour.
|
||||||
- Added optional macro arguments using `macro foo(int x = ...)` which can be checked using `$defined(x)`.
|
- Added optional macro arguments using `macro foo(int x = ...)` which can be checked using `$defined(x)`.
|
||||||
|
- Add compile time ternary `$val ??? <expr> : <expr>`.
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- List.remove_at would incorrectly trigger ASAN.
|
- List.remove_at would incorrectly trigger ASAN.
|
||||||
@@ -84,7 +85,6 @@
|
|||||||
- Fix correct `?` after optional function name when reporting type errors.
|
- Fix correct `?` after optional function name when reporting type errors.
|
||||||
- Make `log` and `exp` no-strip.
|
- Make `log` and `exp` no-strip.
|
||||||
- `@test`/`@benchmark` on module would attach to interface and regular methods.
|
- `@test`/`@benchmark` on module would attach to interface and regular methods.
|
||||||
- Add compile time ternary `$val ??? <expr> : <expr>`.
|
|
||||||
- Deprecated `@select` in favor of `???`.
|
- Deprecated `@select` in favor of `???`.
|
||||||
|
|
||||||
### Stdlib changes
|
### Stdlib changes
|
||||||
|
|||||||
Reference in New Issue
Block a user