Skip to content

Commit

Permalink
Add a few nullFunc Emscripten functions.
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
  • Loading branch information
PiotrSikora authored and AndrewScheidecker committed Dec 3, 2018
1 parent 52b1afe commit c8fd181
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions Lib/Emscripten/Emscripten.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,64 @@ DEFINE_INTRINSIC_FUNCTION(env, "abort", void, emscripten_abort, I32 code)
throwException(Runtime::Exception::calledAbortType);
}

DEFINE_INTRINSIC_FUNCTION(env, "nullFunc_i", void, emscripten_nullFunc_i, I32 code)
{
throwException(Runtime::Exception::calledAbortType);
}
DEFINE_INTRINSIC_FUNCTION(env, "nullFunc_ii", void, emscripten_nullFunc_ii, I32 code)
{
throwException(Runtime::Exception::calledAbortType);
}
DEFINE_INTRINSIC_FUNCTION(env, "nullFunc_iii", void, emscripten_nullFunc_iii, I32 code)
{
throwException(Runtime::Exception::calledAbortType);
}
DEFINE_INTRINSIC_FUNCTION(env, "nullFunc_iiii", void, emscripten_nullFunc_iiii, I32 code)
{
throwException(Runtime::Exception::calledAbortType);
}
DEFINE_INTRINSIC_FUNCTION(env, "nullFunc_iiiii", void, emscripten_nullFunc_iiiii, I32 code)
{
throwException(Runtime::Exception::calledAbortType);
}
DEFINE_INTRINSIC_FUNCTION(env, "nullFunc_iiiiii", void, emscripten_nullFunc_iiiiii, I32 code)
{
throwException(Runtime::Exception::calledAbortType);
}
DEFINE_INTRINSIC_FUNCTION(env, "nullFunc_iiiiiii", void, emscripten_nullFunc_iiiiiii, I32 code)
{
throwException(Runtime::Exception::calledAbortType);
}

DEFINE_INTRINSIC_FUNCTION(env, "nullFunc_v", void, emscripten_nullFunc_v, I32 code)
{
throwException(Runtime::Exception::calledAbortType);
}
DEFINE_INTRINSIC_FUNCTION(env, "nullFunc_vi", void, emscripten_nullFunc_vi, I32 code)
{
throwException(Runtime::Exception::calledAbortType);
}
DEFINE_INTRINSIC_FUNCTION(env, "nullFunc_vii", void, emscripten_nullFunc_vii, I32 code)
{
throwException(Runtime::Exception::calledAbortType);
}
DEFINE_INTRINSIC_FUNCTION(env, "nullFunc_viii", void, emscripten_nullFunc_viii, I32 code)
{
throwException(Runtime::Exception::calledAbortType);
}
DEFINE_INTRINSIC_FUNCTION(env, "nullFunc_viiii", void, emscripten_nullFunc_viiii, I32 code)
{
throwException(Runtime::Exception::calledAbortType);
}
DEFINE_INTRINSIC_FUNCTION(env, "nullFunc_viiiii", void, emscripten_nullFunc_viiiii, I32 code)
{
throwException(Runtime::Exception::calledAbortType);
}
DEFINE_INTRINSIC_FUNCTION(env, "nullFunc_viiiiii", void, emscripten_nullFunc_viiiiii, I32 code)
{
throwException(Runtime::Exception::calledAbortType);
}

static U32 currentLocale = 0;
DEFINE_INTRINSIC_FUNCTION(env, "_uselocale", I32, _uselocale, I32 locale)
{
Expand Down

0 comments on commit c8fd181

Please sign in to comment.