AP_HAL: add waf argument to get consistent builds

This commit is contained in:
Peter Barker 2023-02-15 22:20:52 +11:00 committed by Peter Barker
parent 96ba25b144
commit 5f916a7fed
1 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ private:
}; };
// From: https://stackoverflow.com/questions/19666142/why-is-a-level-of-indirection-needed-for-this-concatenation-macro // From: https://stackoverflow.com/questions/19666142/why-is-a-level-of-indirection-needed-for-this-concatenation-macro
#define WITH_SEMAPHORE( sem ) JOIN( sem, __LINE__, __COUNTER__ ) #define WITH_SEMAPHORE( sem ) JOIN( sem, __AP_LINE__, __COUNTER__ )
#define JOIN( sem, line, counter ) _DO_JOIN( sem, line, counter ) #define JOIN( sem, line, counter ) _DO_JOIN( sem, line, counter )
#define _DO_JOIN( sem, line, counter ) WithSemaphore _getsem ## counter(sem, line) #define _DO_JOIN( sem, line, counter ) WithSemaphore _getsem ## counter(sem, line)