Home * Engines * CPW-Engine * main

The main part of the engine.

Code

header

enum etask {
    TASK_NOTHING,
    TASK_SEARCH
} extern task;

int main()

int main() {
 
    com_init();
 
    while(1) {
 
        if (task == TASK_NOTHING) {
            com();
        } else {
            root();
            task = TASK_NOTHING;
        }
 
    }
 
    return 0;
}

External calls:

What links here?


Up one Level