mirror of
https://github.com/Ed94/metadesk.git
synced 2026-07-27 18:00:03 +00:00
[examples] setting up the last two integration examples and slots in the examples directory
This commit is contained in:
@@ -53,12 +53,17 @@ EXAMPLES:
|
||||
Commentary in this example focuses on strategies for setting up an effective
|
||||
metaprogram.
|
||||
|
||||
7. TODO
|
||||
8. TODO
|
||||
|
||||
7. "overrides" integration/overrides.c
|
||||
9. "overrides" integration/overrides.c
|
||||
When including the Metadesk library into an existing codebase, the overrides
|
||||
system in the library will let you plug in existing implementations you have
|
||||
for many of the basic requirements of the library. This can also be useful if
|
||||
you want to make your program CRT-free, or direct metadesk allocations to your
|
||||
own custom allocator.
|
||||
|
||||
10. TODO
|
||||
11. TODO
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
** Example: memory management
|
||||
**
|
||||
** TODO
|
||||
*/
|
||||
|
||||
//~ includes and globals //////////////////////////////////////////////////////
|
||||
|
||||
#include "md.h"
|
||||
#include "md.c"
|
||||
|
||||
//~ main //////////////////////////////////////////////////////////////////////
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
// TODO(allen)
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
** Example: multi threaded parse
|
||||
**
|
||||
** TODO
|
||||
*/
|
||||
|
||||
//~ includes and globals //////////////////////////////////////////////////////
|
||||
|
||||
#include "md.h"
|
||||
#include "md.c"
|
||||
|
||||
//~ main //////////////////////////////////////////////////////////////////////
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
// TODO(allen)
|
||||
}
|
||||
@@ -24,4 +24,4 @@ main(int argc, char **argv)
|
||||
|
||||
// print the results
|
||||
MD_PrintDebugDumpFromNode(stdout, parse.node, MD_GenerateFlags_All);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user