Rename IS_NULL_MODEL macro

This commit is contained in:
Abdelrahman Said 2024-08-09 23:39:56 +01:00
parent 26c1f17a86
commit b111058f31
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ int main(void) {
Model model =
load_obj_file(arena, "resources/head.obj", "resources/head.pnm");
if (IS_NULL_MODEL(model)) {
if (INVALID_MODEL(model)) {
return TINY_EXIT_MODEL_LOAD_FAILED;
}

View File

@ -7,7 +7,7 @@
#include "typed_list.h"
#define NULL_MODEL ((Model){0})
#define IS_NULL_MODEL(m) (m.vertices == NULL || m.triangles == NULL)
#define INVALID_MODEL(m) (m.vertices == NULL || m.triangles == NULL)
typedef struct vertex Vertex;
struct vertex {