View compile.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker run --rm -v $(pwd):/src trzeci/emscripten em++ --pre-js prefix-node-require.js --std=c++17 -g -O3 -Wall -s WASM=1 -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap", "UTF8ToString", "stringToUTF8"]' -s DISABLE_EXCEPTION_CATCHING=1 -s ALLOW_MEMORY_GROWTH=1 -s MODULARIZE=1 -s 'EXPORT_NAME="ourtest"' --js-library general-exports.js -I./thirdparty/my-cpp-library/ -o ourtest.js mycode.cpp |
View hex contract 0xe3c013fa2210e50af2b8010dcd1854ae2362b126
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"jsonrpc": "2.0", | |
"id": 5, | |
"result": { | |
"version": 0, | |
"hash": "0xe3c013fa2210e50af2b8010dcd1854ae2362b126", | |
"script": "56c56b6c766b00527ac46c766b51527ac4616c766b00c30d696e666c6174696f6e52617465876c766b52527ac46c766b52c3644900616c766b51c3c0519c009c6c766b54527ac46c766b54c3640e00006c766b55527ac46230006c766b51c300c36c766b53527ac46c766b53c3616522006c766b55527ac4620f0061006c766b55527ac46203006c766b55c3616c756652c56b6c766b00527ac4616168164e656f2e53746f726167652e476574436f6e746578740d696e666c6174696f6e526174656c766b00c3615272680f4e656f2e53746f726167652e50757461516c766b51527ac46203006c766b51c3616c7566", | |
"parameters": [ | |
"ByteArray", | |
"Array" |
View extension.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (C) 2011-2015 R M Yorston | |
// Licence: GPLv2+ | |
// Small fixes by Igor M. Coelho | |
const Clutter = imports.gi.Clutter; | |
const Gio = imports.gi.Gio; | |
const GLib = imports.gi.GLib; | |
const Lang = imports.lang; | |
const Mainloop = imports.mainloop; | |
const Meta = imports.gi.Meta; |