basic sdl init graphics and engine implementaiton

This commit is contained in:
herbglitch 2022-10-29 00:22:23 -06:00
parent db1adbb838
commit 685364929b
18 changed files with 257 additions and 7 deletions

View file

@ -27,8 +27,10 @@ extern "C" {
#ifdef ARC_DEBUG
# include <stdio.h>
# define ARC_DEBUG_LOG(ERR, STR, ...) printf("[ERROR %d] " STR "\n", ERR, __VA_ARGS__)
# define ARC_DEBUG_ERR(STR) printf("[ERROR %d]" STR "\n", ERR)
#else
# define ARC_DEBUG_LOG(ERR, STR, ...)
# define ARC_DEBUG_ERR(STR)
#endif
#define ARC_ERR_CHECK(FUNC) FUNC; if(arc_errno){ ARC_DEBUG_LOG(arc_errno, "%s", #FUNC); return; }