simplify gitignore
[vg.git] / src / vg / vg_platform.h
index f1c5488e283774daf42e3ee0b1f6e358dcb0cc63..c81d3474600e048f2117c73c406471ef0ba678ba 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef VG_PLATFORM_H
 #define VG_PLATFORM_H
 
-#include "vg.h"
+//#include "vg.h"
 #include "vg_stdint.h"
 
 /* Copyright (C) 2021-2022 Harry Godden (hgn) - All Rights Reserved */
@@ -57,7 +57,7 @@ struct vg_achievement
    typedef u64                   vg_timespec;
 
 #else
-       #include <pthread.h>
+   #include <pthread.h>
    #include <semaphore.h>
 
    #define VG_DEPRECATED         __attribute__((deprecated))
@@ -80,15 +80,6 @@ VG_STATIC void vg_strncpy( const char *src, char *dst, u32 len )
    }
 }
 
-VG_STATIC void vg_fatal_exit_loop( const char *error );
-VG_STATIC void vg_required( void *ptr, const char *path )
-{
-   if( !ptr )
-   {
-      vg_fatal_exit_loop( path );
-   }
-}
-
 #define VG_REQUIRED_ASSET( TYPE, DECL, FN, PATH, ... )                         \
    TYPE DECL = FN( PATH,##__VA_ARGS__ );                                       \
    vg_required( DECL, "Resource is required but failed to load: '" PATH "'" );