mirror of
https://github.com/pocketpy/pocketpy
synced 2026-02-04 06:30:17 +00:00
Update module.cpp
This commit is contained in:
parent
eaec4a2a1f
commit
8a019895c6
@ -94,8 +94,8 @@ struct import_callback {
|
|||||||
_importfile = nullptr;
|
_importfile = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
static char* importfile(const char* path) {
|
static char* importfile(const char* path, int* data_size) {
|
||||||
if(value.empty()) return _importfile(path, NULL);
|
if(value.empty()) return _importfile(path, data_size);
|
||||||
// +1 for the null terminator
|
// +1 for the null terminator
|
||||||
char* cstr = new char[value.size() + 1];
|
char* cstr = new char[value.size() + 1];
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user