mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
15 lines
408 B
C
15 lines
408 B
C
#ifndef MEMORY_H
|
|
#define MEMORY_H
|
|
|
|
//Simple memnew and memdelete macros so stuff that I took from the godotengine can use it.
|
|
//Not yet sure whether to use their allocator or not.
|
|
//This will be here until I decide.
|
|
|
|
#define memnew(m_class) new m_class
|
|
#define memdelete(instance) delete instance
|
|
#define memnew_arr(m_class, size) new m_class[size]
|
|
#define memdelete_arr(instance) delete[] instance
|
|
|
|
#endif
|
|
|