const char* errorTypes[] = {
        "Pointer",
        "Boolean"
};

void Assert::printError(E_ASSERT_TYPE errorType, const char* pFile, int32 line)
{
    Log::assertMsg(errorTypes[errorType], pFile, line);
    exit(-1);
}

bool Assert::assertState(const void *state, const char* pFile, int32 line)
{
    if(state == NULL)
    {
        printError(AT_POINTER, pFile, line);
    }

    return (state != NULL) ? true : false;
}

bool Assert::assertState(bool state, const char* pFile, int32 line)
{
    if(state == false)
    {
        printError(AT_BOOL, pFile, line);
    }

    return (state == true) ? true : false;
}


