Fix GPUCMD_AddSingleParam() C++ compatibility issue

This commit is contained in:
fincs 2015-10-07 20:50:57 +02:00
parent 8f0f83a417
commit 0e7755af01

View File

@ -89,7 +89,10 @@ u32 f32tof24(float f);
u32 f32tof31(float f);
/// Adds a command with a single parameter to the current command buffer.
#define GPUCMD_AddSingleParam(header, param) GPUCMD_Add((header), (u32[]){(u32)(param)}, 1)
static inline void GPUCMD_AddSingleParam(u32 header, u32 param)
{
GPUCMD_Add(header, &param, 1);
}
/// Adds a masked register write to the current command buffer.
#define GPUCMD_AddMaskedWrite(reg, mask, val) GPUCMD_AddSingleParam(GPUCMD_HEADER(0, (mask), (reg)), (val))