Add assert macro

Also add using of macro in GraphicsSystem ctor.