예제 #1
0
// the main program just calls function simple_demo within
// a 'try' block, and catches CanteraError exceptions that
// might be thrown 
int main() {

    try {
        simple_demo();
    }
    catch (CanteraError) {
        showErrors();
    }
}
예제 #2
0
파일: example.c 프로젝트: rla3rd/simdcomp
int main() {
    if(compress_decompress_demo() != 0) return -1;
    if(varying_bit_width_demo() != 0) return -1;
    simple_demo();
    return 0;
}