internal/graphicsdriver/playstation5: bug fix: link error

This commit is contained in:
Hajime Hoshi 2024-01-22 00:14:00 +09:00
parent 52e0f10ff7
commit 006f14ac19

View File

@ -14,6 +14,9 @@
//go:build playstation5 //go:build playstation5
#ifndef EBITENGINE_INTERNAL_GRAPHICSDRIVER_PLAYSTATION5_GRAPHICS_PLAYSTATION5_H
#define EBITENGINE_INTERNAL_GRAPHICSDRIVER_PLAYSTATION5_GRAPHICS_PLAYSTATION5_H
#include <stdbool.h> #include <stdbool.h>
#include <stddef.h> #include <stddef.h>
@ -26,7 +29,7 @@ typedef struct ebitengine_Error {
int code; int code;
} ebitengine_Error; } ebitengine_Error;
bool ebitengine_IsErrorNil(ebitengine_Error* err) { static bool ebitengine_IsErrorNil(ebitengine_Error* err) {
return err->message == NULL && err->code == 0; return err->message == NULL && err->code == 0;
} }
@ -41,3 +44,5 @@ void ebitengine_DisposeShader(int id);
#ifdef __cplusplus #ifdef __cplusplus
} // extern "C" } // extern "C"
#endif #endif
#endif // EBITENGINE_INTERNAL_GRAPHICSDRIVER_PLAYSTATION5_GRAPHICS_PLAYSTATION5_H