diff --git a/libraries/AP_InternalError/AP_InternalError.h b/libraries/AP_InternalError/AP_InternalError.h index c44b4134a9..4cbbb29043 100644 --- a/libraries/AP_InternalError/AP_InternalError.h +++ b/libraries/AP_InternalError/AP_InternalError.h @@ -112,4 +112,4 @@ extern "C" { } #define INTERNAL_ERROR(error_number) \ - AP::internalerror().error(error_number, __LINE__); + AP::internalerror().error(error_number, __AP_LINE__);