__attribute__ is technically not required. We can probably replace this in a cross platform way like with clang-tidy?

This commit is contained in:
Tyler Wilding
2020-08-26 20:38:42 -04:00
parent fc433222f4
commit c4bd9eaf69
+4 -6
View File
@@ -25,8 +25,6 @@ extern Ptr<u8> MessBufArea;
extern Ptr<u8> OutputBufArea;
extern Ptr<u8> PrintBufArea;
#define __attribute__(A) /* do nothing */
/*!
* Initialize global variables for kprint
*/
@@ -67,25 +65,25 @@ void output_segment_load(const char* name, Ptr<u8> link_block, u32 flags);
/*!
* Print to the GOAL print buffer from C
*/
void cprintf(const char* format, ...) __attribute__((format(printf, 1, 2)));
void cprintf(const char* format, ...);
/*!
* Print directly to the C stdout
* The "k" parameter is ignored, so this is just like printf
*/
void Msg(s32 k, const char* format, ...) __attribute__((format(printf, 2, 3)));
void Msg(s32 k, const char* format, ...);
/*!
* Print directly to the C stdout
* This is identical to Msg.
*/
void MsgWarn(const char* format, ...) __attribute__((format(printf, 1, 2)));
void MsgWarn(const char* format, ...);
/*!
* Print directly to the C stdout
* This is identical to Msg.
*/
void MsgErr(const char* format, ...) __attribute__((format(printf, 1, 2)));
void MsgErr(const char* format, ...);
/*!
* Reverse string in place.