Skip to content

Commit

Permalink
Add utility macro to stringify a macro
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Nov 6, 2024
1 parent 3d7715c commit 9ac135a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/core/utils/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ typedef struct lf_stat_ll {
#define LF_MIN(X, Y) (((X) < (Y)) ? (X) : (Y))
#endif

#define LF_STRINGIFY(x) _LF_STRINGIFY(x)
#define _LF_STRINGIFY(x) #x

/**
* The ID of this federate. For a non-federated execution, this will
* be -1. For a federated execution, it will be assigned when the generated function
Expand Down

0 comments on commit 9ac135a

Please sign in to comment.