mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- $$LINE would sometimes incorrectly be constant.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
- `$defined(foo())` now correctly errors if `foo()` would require a path.
|
||||
- `@if($defined((char*){}.foo()))` does not error if `foo` is missing.
|
||||
- Hard limit of 127 characters for identifiers.
|
||||
- `$$LINE` would sometimes incorrectly be constant.
|
||||
|
||||
### Stdlib changes
|
||||
- Add `ThreadPool` join function to wait for all threads to finish in the pool without destroying the threads.
|
||||
|
||||
@@ -1691,11 +1691,13 @@ INLINE bool sema_set_default_argument(SemaContext *context, CalledDecl *callee,
|
||||
SemaContext *new_context = context_transform_for_eval(context, &default_context, param->unit);
|
||||
bool success;
|
||||
SCOPE_START
|
||||
uint32_t line = new_context->original_inline_line;
|
||||
new_context->original_inline_line = context->original_inline_line ? context->original_inline_line
|
||||
: call->span.row;
|
||||
new_context->original_module = context->original_module;
|
||||
success = sema_analyse_parameter(new_context, arg, param, callee->definition, optional, no_match_ref,
|
||||
callee->macro, false);
|
||||
new_context->original_inline_line = line;
|
||||
SCOPE_END;
|
||||
sema_context_destroy(&default_context);
|
||||
if (no_match_ref && *no_match_ref) return true;
|
||||
|
||||
Reference in New Issue
Block a user