Lines Matching defs:fL
79 fL = luaL_newstate();
80 luaL_openlibs(fL);
81 SkLua::Load(fL);
84 SkLua::SkLua(lua_State* L) : fL(L), fWeOwnL(false) {}
89 lua_getglobal(fL, fTermCode.c_str());
90 if (lua_pcall(fL, 0, 0, 0) != LUA_OK) {
91 SkDebugf("lua err: %s\n", lua_tostring(fL, -1));
94 lua_close(fL);
99 int err = luaL_loadstring(fL, code) || lua_pcall(fL, 0, 0, 0);
101 SkDebugf("--- lua failed: %s\n", lua_tostring(fL, -1));
114 #define CHECK_SETFIELD(key) do if (key) lua_setfield(fL, -2, key); while (0)
154 lua_pushboolean(fL, value);
159 lua_pushstring(fL, str);
166 lua_pushstring(fL, s.c_str());
171 lua_pushstring(fL, str.c_str());
176 lua_newtable(fL);
177 setfield_number(fL, "a", SkColorGetA(color) / 255.0);
178 setfield_number(fL, "r", SkColorGetR(color) / 255.0);
179 setfield_number(fL, "g", SkColorGetG(color) / 255.0);
180 setfield_number(fL, "b", SkColorGetB(color) / 255.0);
185 lua_pushnumber(fL, (double)value);
190 lua_pushnumber(fL, SkScalarToLua(value));
195 lua_newtable(fL);
198 setarray_number(fL, i + 1, (double)array[i]);
204 lua_newtable(fL);
205 setfield_scalar(fL, "left", r.fLeft);
206 setfield_scalar(fL, "top", r.fTop);
207 setfield_scalar(fL, "right", r.fRight);
208 setfield_scalar(fL, "bottom", r.fBottom);
213 push_obj(fL, rr);
218 push_obj(fL, matrix);
223 push_obj(fL, paint);
228 push_obj(fL, path);
233 push_ref(fL, canvas);
990 AutoCallLua(lua_State* L, const char func[], const char verb[]) : fL(L) {
1002 if (lua_pcall(fL, 1, 0, 0) != LUA_OK) {
1003 SkDebugf("lua err: %s\n", lua_tostring(fL, -1));
1005 lua_settop(fL, -1);
1009 lua_State* fL;
1012 #define AUTO_LUA(verb) AutoCallLua acl(fL, fFunc.c_str(), verb)