MysoreScript
Functions
anonymous_namespace{runtime.hh} Namespace Reference

Functions

template<typename T >
T * gcAlloc (size_t extraBytes=0)
 Typesafe helper function for allocating garbage-collected memory. More...
 

Function Documentation

§ gcAlloc()

template<typename T >
T* anonymous_namespace{runtime.hh}::gcAlloc ( size_t  extraBytes = 0)

Typesafe helper function for allocating garbage-collected memory.

Allocates enough memory for one instance of the specified type, plus the number of extra bytes requested.

Definition at line 18 of file runtime.hh.