Skip to content

Commit

Permalink
Fix re-defines
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-34 committed Jul 8, 2024
1 parent 39b7f57 commit c879657
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions modular_ss220/_defines220/code/lists_TG.dm
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// Generic listoflist safe add and removal macros:
///If value is a list, wrap it in a list so it can be used with list add/remove operations
#define LIST_VALUE_WRAP_LISTS(value) (islist(value) ? list(value) : value)
///Add an untyped item to a list, taking care to handle list items by wrapping them in a list to remove the footgun
#define UNTYPED_LIST_ADD(list, item) (list += LIST_VALUE_WRAP_LISTS(item))
///Remove an untyped item to a list, taking care to handle list items by wrapping them in a list to remove the footgun
#define UNTYPED_LIST_REMOVE(list, item) (list -= LIST_VALUE_WRAP_LISTS(item))

0 comments on commit c879657

Please sign in to comment.