210192d60e7164fbf6e15ed72940bb74da6b62c6
5 #define VG_STATIC static
11 #include "vg_stdint.h"
13 /* Copyright (C) 2021-2022 Harry Godden (hgn) - All Rights Reserved */
15 typedef unsigned int uint
;
30 typedef struct vg_tex2d vg_tex2d
;
38 #define vg_static_assert _Static_assert
39 #define vg_list_size( A ) (sizeof(A)/sizeof(A[0]))
40 #define VG_MUST_USE_RESULT __attribute__((warn_unused_result))
42 VG_STATIC
void vg_strncpy( const char *src
, char *dst
, u32 len
)
44 for( u32 i
=0; i
<len
; i
++ )
61 #define VG_MIN( A, B ) ((A)<(B)?(A):(B))
62 #define VG_MAX( A, B ) ((A)>(B)?(A):(B))