mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
enhance default hashing strategy for basic types (#1758)
* enhance default hashing strategy for basic types * fix * `$defined` in a global scope should accept testing normal macros. --------- Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
This commit is contained in:
committed by
GitHub
parent
14d8e93004
commit
a16316d7b4
@@ -3962,7 +3962,7 @@ bool sema_analyse_var_decl(SemaContext *context, Decl *decl, bool local)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (context->call_env.kind == CALL_ENV_GLOBAL_INIT)
|
||||
if (context->call_env.kind == CALL_ENV_GLOBAL_INIT && !context->call_env.in_no_eval)
|
||||
{
|
||||
if (context->current_macro)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user