Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/generators/hl2c.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1759,6 +1759,11 @@ let write_c com file (code:code) gnames num_domains =
()
) all_types;

line "";
line "#ifndef HL_DUMP_TYPES";
line "HL_API void hl_sys_print(vbyte*);";
line "#endif";

line "";
line "static void dump_types( void (*fdump)( void *, int) ) {";
block ctx;
Expand All @@ -1782,7 +1787,7 @@ let write_c com file (code:code) gnames num_domains =
| _ -> ()
) all_types;
line "#else";
sexpr "printf(\"dump_types not available, please compile with HL_DUMP_TYPES defined\\n\")";
sexpr "hl_sys_print((vbyte*)USTR(\"dump_types not available, please compile with HL_DUMP_TYPES defined\\n\"))";
line "#endif";
unblock ctx;
line "}";
Expand Down
Loading