unit tests in clang #2012

This commit is contained in:
rusefillc 2020-12-04 23:59:21 -05:00
parent 864bd7fa73
commit e5ef8de2ae
3 changed files with 5 additions and 2 deletions

View File

@ -28,6 +28,7 @@
#define SIGNATURE_H QUOTE(SIGNATURE_NAME SHORT_BOARD_NAME SIGNATURE_EXT)
#if !EFI_UNIT_TEST
#include SIGNATURE_H
#pragma message ("TS_SIGNATURE: " TS_SIGNATURE)
@ -35,3 +36,4 @@
const char *getTsSignature() {
return TS_SIGNATURE;
}
#endif

View File

@ -9,7 +9,8 @@ struct AirmassResult {
float EngineLoadPercent = 100;
};
struct AirmassModelBase {
class AirmassModelBase {
public:
DECLARE_ENGINE_PTR;
explicit AirmassModelBase(const ValueProvider3D& veTable);

View File

@ -93,7 +93,7 @@ float tanf_taylor(float theta);
#include <cstddef>
#define IS_NEGATIVE_ZERO(value) (std::signbit(value) && value==0)
#define IS_NEGATIVE_ZERO(value) (__builtin_signbit(value) && value==0)
#define fixNegativeZero(value) (IS_NEGATIVE_ZERO(value) ? 0 : value)
// C++ helpers go here