Pārlūkot izejas kodu

[nob] Make NOB_INVALID_PROC -1 on all platforms

rexim 2 gadi atpakaļ
vecāks
revīzija
35fe2fefed
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      nob.h

+ 1 - 3
nob.h

@@ -157,14 +157,12 @@ bool nob_read_entire_file(const char *path, Nob_String_Builder *sb);
 #define nob_sb_free(sb) NOB_FREE((sb).items)
 
 // Process handle
-// TODO: NOB_INVALID_PROC could be actually the same for both platforms
 #ifdef _WIN32
 typedef HANDLE Nob_Proc;
-#define NOB_INVALID_PROC NULL
 #else
 typedef int Nob_Proc;
-#define NOB_INVALID_PROC -1
 #endif // _WIN32
+#define NOB_INVALID_PROC -1
 
 typedef struct {
     Nob_Proc *items;