Mercurial > malikania
diff tests/libclient/js-point/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-point/main.cpp Fri Dec 16 15:38:45 2016 +0100 +++ b/tests/libclient/js-point/main.cpp Fri Dec 16 16:11:24 2016 +0100 @@ -23,7 +23,7 @@ class test_point { protected: - UniqueContext m_ctx; + dukx_context m_ctx; public: test_point() @@ -53,7 +53,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "x"); @@ -77,7 +77,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "x"); @@ -101,7 +101,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "x"); @@ -125,7 +125,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "x"); @@ -161,7 +161,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "name"); @@ -202,7 +202,7 @@ auto ret = duk_peval_string(m_ctx, "build({ x: 100, y: 200 });"); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "x"); @@ -236,7 +236,7 @@ ); if (ret != 0) { - throw dukx_exception(m_ctx, -1); + throw dukx_get_exception(m_ctx, -1); } duk_get_global_string(m_ctx, "name"); @@ -277,7 +277,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, "x");