holyc compile
[vg.git] / src / vg / vg_platform.h
index d4ac5e422c2f1920790fabe053b3158e56cf5c29..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 */
@@ -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 "'" );