Skip to content

Commit

Permalink
Emit warning for missing PURS_ANY_RETAIN impls
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Schlitter committed Jul 16, 2019
1 parent 15da145 commit e230cba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/purescript.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ const char * purs_any_tag_str (const purs_any_tag_t);
break;\
case PURS_ANY_TAG_CONT:\
PURS_RC_RETAIN((X)->value.cont);\
break;\
case PURS_ANY_TAG_THUNK:\
case PURS_ANY_TAG_CONS:\
case PURS_ANY_TAG_FOREIGN:\
fprintf(stderr, "WARN: Todo: Implement PURS_ANY_RETAIN for: %s\n", purs_any_tag_str((X)->tag));\
break;\
default:\
break;\
}\
Expand Down

0 comments on commit e230cba

Please sign in to comment.