Crashing with a null pointer de-reference, why?
<p>I was reading <a href="http://en.wikipedia.org/wiki/Moai_%28game_development_platform%29" rel="nofollow">Moai</a> source code, and I became curious about why this should cause a crash (or not...)</p>

<p>I do not really understood that snippet.</p>

<p>In file A:</p>

<pre><code>#define UNUSED(p) (( void )p)
</code></pre>

<p>In file B:</p>

<pre><code>//----------------------------------------------------------------//
/** @name   crash
    @text   Crashes Moai with a null pointer dereference.

    @out    nil
*/
int MOAISim::_crash ( lua_State* L ) {
    UNUSED(L);

    int *p = NULL;
    (*p) = 0;

    return 0;
}
</code></pre>

<p>EDIT:</p>

<p>I think part of what I was not understanding is what "deference" means. So if you put that in your answers it would be awesome.</p>
