Skip to content

Commit

Permalink
Adding let & print as synonymous in m-generic mode
Browse files Browse the repository at this point in the history
  • Loading branch information
P-p-H-d committed Apr 4, 2024
1 parent 7404e63 commit 8602a25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions m-generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
#define out_serial(x, y) M_G3N_CALL_2(OUT_SERIAL, y, m_serial_write_t, x, TYPE, y)
#define in_serial(x, y) M_G3N_CALL_2(IN_SERIAL, x, TYPE, x, m_serial_read_t, y)

#define let(...) M_LET(__VA_ARGS__)
#define print(...) M_PRINT(__VA_ARGS__)

// for each(item, container)
#define each(item, container) \
M_G3N_EACHI(item, container, M_C(m_local_it_, __LINE__), M_C(local_pass_, __LINE__))
Expand Down

0 comments on commit 8602a25

Please sign in to comment.