![]() |
Libmacro
0.2
Libmacro is an extensible macro and hotkey library.
|
Include all Libmacro functionality. More...
#include "mcr/context.h"Go to the source code of this file.
Namespaces | |
| mcr | |
| Libmacro, by Jonathan Pelletier, New Paradigm Software. Alpha version. | |
Functions | |
| MCR_API struct mcr_context * | mcr_allocate () |
| MCR_API int | mcr_deallocate (struct mcr_context *ctx) |
| MCR_API int | mcr_initialize (struct mcr_context *ctx) |
| MCR_API int | mcr_deinitialize (struct mcr_context *ctx) |
| MCR_API int | mcr_load_contracts (struct mcr_context *ctx) |
| MCR_API void | mcr_trim (struct mcr_context *ctx) |
Include all Libmacro functionality.
Definition in file libmacro.h.
| MCR_API struct mcr_context* mcr_allocate | ( | ) |
malloc and mcr_initialize a mcr_context
Will not load contracts. Will set mcr_err.
| MCR_API int mcr_deallocate | ( | struct mcr_context * | ctx | ) |
mcr_deinitialize and free.
Only use with a context created by malloc or mcr_allocate. Because of threading do not deallocate in a deconstructor or on program exit. Will set mcr_err.
| ctx | Libmacro context |
| MCR_API int mcr_deinitialize | ( | struct mcr_context * | ctx | ) |
Clean all resources used by Libmacro.
Because of threading do not deinitialize in a deconstructor or on program exit. Will set mcr_err.
| ctx | Libmacro context |
| MCR_API int mcr_initialize | ( | struct mcr_context * | ctx | ) |
| MCR_API int mcr_load_contracts | ( | struct mcr_context * | ctx | ) |
Register standard types and map their given names.
| ctx | Libmacro context |
| MCR_API void mcr_trim | ( | struct mcr_context * | ctx | ) |
Minimize allocation used by Libmacro.
| ctx | Libmacro context |