Mercurial > malikania
diff tests/libclient/js-size/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 | fe7e3524e571 |
children | 858621081b95 |
line wrap: on
line diff
--- a/tests/libclient/js-size/main.cpp Fri Dec 16 15:38:45 2016 +0100 +++ b/tests/libclient/js-size/main.cpp Fri Dec 16 16:11:24 2016 +0100 @@ -25,7 +25,7 @@ class test_size { protected: - UniqueContext m_ctx; + dukx_context m_ctx; public: test_size() @@ -55,7 +55,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "w"); @@ -79,7 +79,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "w"); @@ -103,7 +103,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "w"); @@ -127,7 +127,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "w"); @@ -163,7 +163,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "name"); @@ -190,7 +190,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "name"); @@ -217,7 +217,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "name"); @@ -244,7 +244,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "name"); @@ -271,7 +271,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "name"); @@ -312,7 +312,7 @@ auto ret = duk_peval_string(m_ctx, "build({ width: 100, height: 200 });"); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "w"); @@ -346,7 +346,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "name"); @@ -387,7 +387,7 @@ auto ret = duk_peval_string(m_ctx, "build({});"); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "w");