mirror of
https://github.com/Ed94/metadesk.git
synced 2026-06-15 16:52:22 -07:00
thread context scratch system; converge on transition idiom in sample code
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
#include "md.h"
|
||||
#include "md.c"
|
||||
|
||||
static MD_Arena *arena = 0;
|
||||
|
||||
int main(void)
|
||||
{
|
||||
MD_Arena *arena = MD_ArenaNew(1ull << 40);
|
||||
MD_ThreadContext tctx;
|
||||
MD_ThreadInit(&tctx);
|
||||
|
||||
arena = MD_ArenaNew(1ull << 40);
|
||||
|
||||
printf("%d\n", MD_CPP_VERSION);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user