mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-09 13:10:17 +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
|
docs/references.md
|
||||||
|
|
||||||
.xmake
|
.xmake
|
||||||
|
.vs
|
||||||
|
|||||||
@ -70,7 +70,7 @@ struct SourceData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Str snapshot(int lineno, const char* cursor, std::string_view name) const {
|
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() {
|
~SourceData() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user