Skip to content

Commit

Permalink
Merge pull request DragonMinded#455 from HailToDodongo/fix_extern
Browse files Browse the repository at this point in the history
fix: extern in macro
  • Loading branch information
rasky authored Oct 8, 2023
2 parents 8f883bd + 5630c6e commit 35ce400
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/rdpq.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ typedef struct {
extern "C" {
#endif

/// @private
extern void __rdpq_set_scissor(uint32_t, uint32_t);

/**
* @brief Initialize the RDPQ library.
*
Expand Down Expand Up @@ -449,7 +452,6 @@ inline void rdpq_set_yuv_parms(uint16_t k0, uint16_t k1, uint16_t k2, uint16_t k
* @see #rdpq_set_color_image
*/
#define rdpq_set_scissor(x0, y0, x1, y1) ({ \
extern void __rdpq_set_scissor(uint32_t, uint32_t); \
int32_t x0fx = (x0)*4; \
int32_t y0fx = (y0)*4; \
int32_t x1fx = (x1)*4; \
Expand Down

0 comments on commit 35ce400

Please sign in to comment.