Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! WIP: cross file arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Nov 6, 2017
1 parent b6fd406 commit eb33172
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/include/xfa.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,8 @@
* @param[in] name name of the cross-file array
*/
#define XFA_USE(type, name) \
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
extern const type name [0]; \
extern const type name ## _end [0]; \
_Pragma("GCC diagnostic pop") \
extern unsigned __xfa_dummy
extern const type name ## _end [0];

/**
* @brief Define variable in cross-file array
Expand Down

0 comments on commit eb33172

Please sign in to comment.