-#define vg_static_assert _Static_assert
-#define vg_list_size( A ) (sizeof(A)/sizeof(A[0]))
-#define VG_MUST_USE_RESULT __attribute__((warn_unused_result))
-
-VG_STATIC void vg_strncpy( const char *src, char *dst, u32 len )
-{
- for( u32 i=0; i<len; i++ )
- {
- dst[i] = src[i];
-
- if( !src[i] )
- break;
- }
-}
-
-#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 "'" );
-
-#include <stdio.h>
-#include <dirent.h>
-#include <string.h>
-#include <stdarg.h>
-#include <ctype.h>
-#include <math.h>
-#include <assert.h>
+#define VG_ASSERT( ITEM, ... ) \
+ if( !( ITEM ) ) { \
+ vg_fatal_error( "Assertion failed: " VG_LOG_MCSTR(ITEM) "\n" VG_LOG_WHERE );\
+ }