1
0
forked from 0ad/0ad

New JS function: crash(). Generates an access violation.

This was SVN commit r762.
This commit is contained in:
Ykkrosh 2004-07-15 19:31:09 +00:00
parent 82de48832e
commit e01f4a540d

View File

@ -150,7 +150,7 @@ JSBool exitProgram(JSContext* context, JSObject* globalObject, unsigned int argc
JSBool crash(JSContext* context, JSObject* globalObject, unsigned int argc, jsval* argv, jsval* rval)
{
MICROLOG(L"Crashing.");
MICROLOG(L"Crashing at user's request.");
uintptr_t ptr = 0xDEADC0DE;
return *(JSBool*) ptr;
}