Open source game engine

Working with memory

Contents

[ hide ]

  1. 1 Example

There are some macros to work with memory in KGE.
Use this macros to allocate memory with nedmalloc library which is more faster and KGE can Track Memory for you.

Example

// Allocate memory and calls the constructor
pLogger = KGE_NEW(kge::io::Logger)();

// Delete pointer and calls the destructor
KGE_DELETE(pLogger, Logger); 
This page is a Wiki! Log in or register an account to edit.

Leave a comment for: "Working with memory"