arudradey/ml-cpu-storage / emsdk /upstream /emscripten /test /embind /test_dynamic_initialization.cpp
arudradey's picture
download
raw
583 Bytes
// Copyright 2018 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 <string>
#include <emscripten/bind.h>
#include <emscripten/emscripten.h>
const std::string global_string = "global string";
EMSCRIPTEN_BINDINGS(constants) {
emscripten::constant("global_string", global_string);
}
int main() {
EM_ASM(
console.log("global_string = " + Module['global_string']);
);
}

Xet Storage Details

Size:
583 Bytes
·
Xet hash:
b9ee7fb134a2b6e53b525a340ac8b4627264332aaf92eb0f7ded2a7ce27a6172

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