Permalink
Browse files

added assertion

  • Loading branch information...
1 parent b83f6ae commit a2da1c90ca9ac340d626f215a9e879d7202e30eb @niksaak committed Feb 20, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/engine/engine.c
View
3 src/engine/engine.c
@@ -1,4 +1,5 @@
#include <stdbool.h>
+#include <assert.h>
#include <SDL/SDL.h>
#include <SDL/SDL_gfxPrimitives.h>
@@ -38,6 +39,8 @@ static void render(SDL_Surface* screen, void (*renderf)())
void gameloop(SDL_Surface* screen)
{
+ assert(!nullp(screen));
+
Uint32 dt = 10;
Uint32 curt = SDL_GetTicks();
Uint32 accum = 0;

0 comments on commit a2da1c9

Please sign in to comment.