mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-08 20:50:16 +00:00
fix empty function name handling
This commit is contained in:
parent
afd0cbc8a0
commit
a9376bd80f
1
.gitignore
vendored
1
.gitignore
vendored
@ -33,3 +33,4 @@ main.dSYM/
|
||||
docs/references.md
|
||||
|
||||
.xmake
|
||||
.vs
|
||||
|
||||
@ -70,7 +70,7 @@ struct SourceData {
|
||||
}
|
||||
|
||||
Str snapshot(int lineno, const char* cursor, std::string_view name) const {
|
||||
return pkpy_SourceData__snapshot(self, lineno, cursor, name.data());
|
||||
return pkpy_SourceData__snapshot(self, lineno, cursor, name.empty() ? nullptr : name.data());
|
||||
}
|
||||
|
||||
~SourceData() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user