Skip to content

Commit

Permalink
[utilities/compiler] implement _Static_assert for IAR
Browse files Browse the repository at this point in the history
  • Loading branch information
versaloon committed Oct 30, 2024
1 parent ce2ba96 commit 09562f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/utilities/compiler/arm/type.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ typedef int_fast8_t intalu_t;

#if __IS_COMPILER_IAR__

// IAR has no _Static_assert, but has static_assert
#define _Static_assert static_assert

// iar has no such constants in math.h
# define M_E 2.71828182845904523536 // e
# define M_LOG2E 1.44269504088896340736 // log2(e)
Expand Down

0 comments on commit 09562f9

Please sign in to comment.