arudradey/ml-cpu-storage / emsdk /upstream /emscripten /test /hello_world_main_loop.cpp
arudradey's picture
download
raw
495 Bytes
// Copyright 2020 The Emscripten Authors. All rights reserved. Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.
#include <stdio.h>
#include <emscripten.h>
void looper() {
static int frame = 0;
frame++;
if (frame == 10) {
puts("Hello, world!");
emscripten_cancel_main_loop();
}
}
int main() {
emscripten_set_main_loop(looper, 0, 0);
}

Xet Storage Details

Size:
495 Bytes
·
Xet hash:
1d1554a6c8d8411042391989bdee8c9d73caaf8d783359ed779c4036b7ced6fb

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.