Skip to content

A tiny wrapper for TempleOS to automatically free allocated memory.

License

Notifications You must be signed in to change notification settings

DivineDebugger/HolyGC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

HolyGC

A tiny wrapper for TempleOS to automatically free allocated memory.

Setup

Write the contents of HolyGC.HC into a file called HolyGC.HC in your own TempleOS machine, then just include the file into your project.

Usage

Assuming HolyGC.HC is in the home directory:

#include "::Home/HolyGC.HC"

Which allows you to use the functions GCMAlloc and GCClean.

Functions

Same as MAlloc but frees the block when GCClean is called.

U8 *GCMAlloc(I64 size)

Frees every block allocated by GCMAlloc.

U0 GCClean()

About

A tiny wrapper for TempleOS to automatically free allocated memory.

Topics

Resources

License

Stars

Watchers

Forks

Languages