mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-06 07:38:45 +00:00
overridable scratch; remove the tedious explicit thread init
This commit is contained in:
@@ -5,9 +5,6 @@ static MD_Arena *arena = 0;
|
||||
|
||||
int main(void)
|
||||
{
|
||||
MD_ThreadContext tctx;
|
||||
MD_ThreadInit(&tctx);
|
||||
|
||||
arena = MD_ArenaAlloc(1ull << 40);
|
||||
|
||||
printf("%d\n", MD_CPP_VERSION);
|
||||
|
||||
@@ -120,9 +120,6 @@ TokenMatch(MD_Token token, MD_String8 string, MD_TokenKind kind)
|
||||
|
||||
int main(void)
|
||||
{
|
||||
MD_ThreadContext tctx;
|
||||
MD_ThreadInit(&tctx);
|
||||
|
||||
arena = MD_ArenaAlloc(1ull << 40);
|
||||
|
||||
Test("Lexer")
|
||||
|
||||
@@ -16,9 +16,6 @@ void run_test_on_string(MD_String8 string)
|
||||
|
||||
int main(void)
|
||||
{
|
||||
MD_ThreadContext tctx;
|
||||
MD_ThreadInit(&tctx);
|
||||
|
||||
arena = MD_ArenaAlloc(1ull << 40);
|
||||
|
||||
// TODO(allen): throw more at this.
|
||||
|
||||
Reference in New Issue
Block a user