Skip to content

Commit 9b54e79

Browse files
committed
Resolve typedefs in DatatypeIsPointer
1 parent ab76995 commit 9b54e79

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

include/bonsai_debug

make.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function RunPoof {
183183
-D POOF_PREPROCESSOR \
184184
-D BONSAI_PREPROCESSOR \
185185
-D BONSAI_DEBUG_SYSTEM \
186-
-d \
186+
-d \
187187
$PLATFORM_DEFINES \
188188
-I "." \
189189
-I "$ROOT/include" \

poof.rdbg

1.18 KB
Binary file not shown.

poof/poof.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7523,9 +7523,8 @@ DatatypeIsPointer(parse_context *Ctx, datatype *Data, parser *Scope = 0, c_token
75237523

75247524
case type_type_def:
75257525
{
7526-
InvalidCodePath();
7527-
/* type_def *TDef = SafeAccessPtr(type_def, Data); */
7528-
/* Result = TypeSpecIsPointer(&TDef->Type); */
7526+
type_def *TDef = &SafeAccessPtr(type_def, Data);
7527+
Result = TypeSpecIsPointer(&TDef->Type);
75297528
} break;
75307529

75317530
case type_declaration:
@@ -8423,7 +8422,6 @@ GoGoGadgetMetaprogramming(parse_context* Ctx, todo_list_info* TodoInfo)
84238422
Builder.Chunks.Memory = &Global_PermMemory;
84248423

84258424
program_datatypes *Datatypes = &Ctx->Datatypes;
8426-
meta_func_stream *FunctionDefs = &Ctx->MetaFunctions;
84278425
memory_arena *Memory = Ctx->Memory;
84288426

84298427
parser *Parser = Ctx->CurrentParser;
@@ -9006,12 +9004,15 @@ main(s32 ArgCount_, const char** ArgStrings)
90069004

90079005
if (Stdlib.Plat.Input.Escape.Clicked) { break; }
90089006

9009-
b32 Toggle2 = False, Toggle = False;
9010-
if (Stdlib.Plat.Input.F1.Clicked) { Toggle = True; }
9011-
if (Stdlib.Plat.Input.F2.Clicked) { Toggle2 = True; }
9007+
Info("Hi");
9008+
9009+
b32 Toggle = False, Toggle2 = False;
9010+
if (Stdlib.Plat.Input.F1.Clicked) { Info("hi"); Toggle = True; }
9011+
if (Stdlib.Plat.Input.F2.Clicked) { Info("hi2"); Toggle2 = True; }
90129012

9013+
Info("%d", Stdlib.Plat.Input.F1.Clicked);
90139014

9014-
DebugState->DisplayDebugMenu = True;
9015+
/* DebugState->DisplayDebugMenu = True; */
90159016
DEBUG_FRAME_BEGIN(&Ui, Dt, Toggle, Toggle2);
90169017

90179018
PushTableStart(&Ui);

0 commit comments

Comments
 (0)