How the Nasal GC works: Difference between revisions

Jump to navigation Jump to search
m
Line 240: Line 240:
For instance, first naNew() is called for the given context, along with the type info (to set up the size properly)- and then each type is initialized:
For instance, first naNew() is called for the given context, along with the type info (to set up the size properly)- and then each type is initialized:
<syntaxhighlight lang="C">
<syntaxhighlight lang="C">
// The naNew* helpers are just wrappers to set up type-specific structures, after allocating the memory using naNew()
naRef naNewString(struct Context* c)
naRef naNewString(struct Context* c)
{
{

Navigation menu