summaryrefslogtreecommitdiff
path: root/src/lib/elua
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2015-04-10 16:45:05 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:20 +0100
commit0496762057e055fd227382cb1be81578240e5577 (patch)
treeb6cb7b0775ce4c29918b40fb95f369d6f2385d6e /src/lib/elua
parent5aca5e13a18ef06a8fcb1f4e6f93624e309a93f2 (diff)
elua: utilize the new elua_util APIs
Diffstat (limited to 'src/lib/elua')
-rw-r--r--src/lib/elua/elua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elua/elua.c b/src/lib/elua/elua.c
index df96e1d00c..32f203cc6b 100644
--- a/src/lib/elua/elua.c
+++ b/src/lib/elua/elua.c
@@ -416,7 +416,7 @@ elua_util_require(Elua_State *es, const char *libname)
416{ 416{
417 EINA_SAFETY_ON_NULL_RETURN_VAL(es, -1); 417 EINA_SAFETY_ON_NULL_RETURN_VAL(es, -1);
418 EINA_SAFETY_ON_NULL_RETURN_VAL(es->luastate, -1); 418 EINA_SAFETY_ON_NULL_RETURN_VAL(es->luastate, -1);
419 EINA_SAFETY_ON_FALSE_RETURN_VAL(es->requireref, -1); 419 EINA_SAFETY_ON_FALSE_RETURN_VAL(elua_state_require_ref_push(es), -1);
420 lua_pushstring(es->luastate, libname); 420 lua_pushstring(es->luastate, libname);
421 return elua_report_error(es, es->progname, 421 return elua_report_error(es, es->progname,
422 lua_pcall(es->luastate, 1, 0, 0)); 422 lua_pcall(es->luastate, 1, 0, 0));
@@ -448,7 +448,7 @@ elua_util_app_load(Elua_State *es, const char *appname)
448{ 448{
449 EINA_SAFETY_ON_NULL_RETURN_VAL(es, EINA_FALSE); 449 EINA_SAFETY_ON_NULL_RETURN_VAL(es, EINA_FALSE);
450 EINA_SAFETY_ON_NULL_RETURN_VAL(es->luastate, EINA_FALSE); 450 EINA_SAFETY_ON_NULL_RETURN_VAL(es->luastate, EINA_FALSE);
451 EINA_SAFETY_ON_FALSE_RETURN_VAL(es->apploadref, EINA_FALSE); 451 EINA_SAFETY_ON_FALSE_RETURN_VAL(elua_state_appload_ref_push(es), EINA_FALSE);
452 lua_pushstring(es->luastate, appname); 452 lua_pushstring(es->luastate, appname);
453 lua_call(es->luastate, 1, 2); 453 lua_call(es->luastate, 1, 2);
454 if (lua_isnil(es->luastate, -2)) 454 if (lua_isnil(es->luastate, -2))