2019-01-03 19:27:27 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2019 Google LLC
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WasmAliases_DEFINED
|
|
|
|
#define WasmAliases_DEFINED
|
|
|
|
|
|
|
|
#include <emscripten.h>
|
|
|
|
#include <emscripten/bind.h>
|
|
|
|
|
|
|
|
using namespace emscripten;
|
|
|
|
|
|
|
|
// Self-documenting types
|
|
|
|
using JSArray = emscripten::val;
|
|
|
|
using JSObject = emscripten::val;
|
|
|
|
using JSString = emscripten::val;
|
|
|
|
using SkPathOrNull = emscripten::val;
|
|
|
|
using Uint8Array = emscripten::val;
|
2019-10-03 15:22:08 +00:00
|
|
|
using Float32Array = emscripten::val;
|
2019-01-03 19:27:27 +00:00
|
|
|
|
|
|
|
#endif
|