diff options
Diffstat (limited to 'gen_gl.c')
-rw-r--r-- | gen_gl.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -353,7 +353,7 @@ int main(int argc, char **argv) { f = fopen("gl.h", "wb"); if (f == NULL) { - printf("Failed to write kit_gl.inl.h.\n"); + printf("Failed to write gl.h.\n"); DESTROY_ALL_; return 1; } @@ -448,6 +448,12 @@ int main(int argc, char **argv) { f = fopen("gl.inl.h", "wb"); + if (f == NULL) { + printf("Failed to write gl.inl.h.\n"); + DESTROY_ALL_; + return 1; + } + fprintf(f, "#include \"gl.h\"\n"); for (i64 i = 0; i < procs.size; i++) |