projects
/
vg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
aync buffer
[vg.git]
/
vg_platform.h
diff --git
a/vg_platform.h
b/vg_platform.h
index 6707af7cab28a4862211f569b0c0660c5e84cc93..210192d60e7164fbf6e15ed72940bb74da6b62c6 100644
(file)
--- a/
vg_platform.h
+++ b/
vg_platform.h
@@
-1,6
+1,12
@@
#ifndef VG_PLATFORM_H
#define VG_PLATFORM_H
#ifndef VG_PLATFORM_H
#define VG_PLATFORM_H
+#ifdef VG_RELEASE
+ #define VG_STATIC static
+#else
+ #define VG_STATIC
+#endif
+
//#include "vg.h"
#include "vg_stdint.h"
//#include "vg.h"
#include "vg_stdint.h"
@@
-29,10
+35,6
@@
struct vg_achievement
const char *name;
};
const char *name;
};
-#ifndef VG_STATIC
-#define VG_STATIC static
-#endif
-
#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))
#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))
@@
-48,10
+50,6
@@
VG_STATIC void vg_strncpy( const char *src, char *dst, u32 len )
}
}
}
}
-#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 <stdio.h>
#include <dirent.h>
#include <string.h>
@@
-62,5
+60,4
@@
VG_STATIC void vg_strncpy( const char *src, char *dst, u32 len )
#define VG_MIN( A, B ) ((A)<(B)?(A):(B))
#define VG_MAX( A, B ) ((A)>(B)?(A):(B))
#define VG_MIN( A, B ) ((A)<(B)?(A):(B))
#define VG_MAX( A, B ) ((A)>(B)?(A):(B))
-
#endif
#endif