while (state != STATE_QUIT) {
    loop();
}

}