class MyFirstThing { }
class MySecondThing
{
MyFirstThing * thing;
MySecondThing() {
this->thing =
autonew MyFirstThing();
}
}
void main()
{
MySecondThing* first =
lwnew MySecondThing();
MySecondThing* second = new MySecondThing();
}
#define lwnew
new keyword for low work RAM
Definition srl_memory.hpp:984
#define autonew
Allocates memory in the same zone as current context.
Definition srl_memory.hpp:1032