Skip to content

Commit

Permalink
Merge fix: Restore Scope::search() as C++ function
Browse files Browse the repository at this point in the history
We need it in `gen/asm-x86.h`.
  • Loading branch information
kinke committed Nov 6, 2023
1 parent 2b3ffeb commit fd66fb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dmd/dscope.d
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ version (IN_LLVM)
* Returns:
* symbol if found, null if not
*/
extern (D) Dsymbol search(const ref Loc loc, Identifier ident, Dsymbol* pscopesym, int flags = IgnoreNone)
extern (C++) Dsymbol search(const ref Loc loc, Identifier ident, Dsymbol* pscopesym, int flags = IgnoreNone)
{
version (LOGSEARCH)
{
Expand Down
2 changes: 2 additions & 0 deletions dmd/scope.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,6 @@ struct Scope

AliasDeclaration *aliasAsg; // if set, then aliasAsg is being assigned a new value,
// do not set wasRead for it

Dsymbol *search(const Loc &loc, Identifier *ident, Dsymbol **pscopesym, int flags = IgnoreNone);
};

0 comments on commit fd66fb4

Please sign in to comment.