Mercurial > malikania
diff tests/libclient/js-sprite/main.cpp @ 63:96ba0c5cf893
Misc: update duktape.hpp to new style
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 16 Dec 2016 16:11:24 +0100 |
parents | f30c84b4b9ed |
children |
line wrap: on
line diff
--- a/tests/libclient/js-sprite/main.cpp Fri Dec 16 15:38:45 2016 +0100 +++ b/tests/libclient/js-sprite/main.cpp Fri Dec 16 16:11:24 2016 +0100 @@ -36,7 +36,7 @@ protected: directory_resources_locator m_locator; client_resources_loader m_loader; - UniqueContext m_ctx; + dukx_context m_ctx; public: test_sprite() @@ -64,7 +64,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "w"); @@ -87,7 +87,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "n"); @@ -108,7 +108,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "w"); @@ -131,7 +131,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "n"); @@ -152,7 +152,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "w"); @@ -176,7 +176,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } for (unsigned c = 0; c < 12; ++c) { @@ -188,7 +188,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } std::this_thread::sleep_for(1s);