mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update config.h
This commit is contained in:
parent
f83fe30ab5
commit
a0bd1a3f3b
@ -27,9 +27,15 @@
|
|||||||
|
|
||||||
// Memory allocation functions
|
// Memory allocation functions
|
||||||
#ifndef PK_MALLOC
|
#ifndef PK_MALLOC
|
||||||
#define PK_MALLOC(size) malloc(size)
|
#ifndef __cplusplus
|
||||||
#define PK_REALLOC(ptr, size) realloc(ptr, size)
|
#define PK_MALLOC(size) malloc(size)
|
||||||
#define PK_FREE(ptr) free(ptr)
|
#define PK_REALLOC(ptr, size) realloc(ptr, size)
|
||||||
|
#define PK_FREE(ptr) free(ptr)
|
||||||
|
#else
|
||||||
|
#define PK_MALLOC(size) std::malloc(size)
|
||||||
|
#define PK_REALLOC(ptr, size) std::realloc(ptr, size)
|
||||||
|
#define PK_FREE(ptr) std::free(ptr)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// This is the maximum size of the value stack in py_TValue units
|
// This is the maximum size of the value stack in py_TValue units
|
||||||
|
Loading…
x
Reference in New Issue
Block a user