webmcp
changeset 413:a09a0defb48a
Removed some line-breaks
author | jbe |
---|---|
date | Sat Jan 09 03:30:51 2016 +0100 (2016-01-09) |
parents | 7d43be9afa56 |
children | 015be25c98dd |
files | libraries/mondelefant/mondelefant_native.c |
line diff
1.1 --- a/libraries/mondelefant/mondelefant_native.c Fri Jan 08 03:10:33 2016 +0100 1.2 +++ b/libraries/mondelefant/mondelefant_native.c Sat Jan 09 03:30:51 2016 +0100 1.3 @@ -1465,10 +1465,7 @@ 1.4 if (!lua_toboolean(L, 2)) { 1.5 // set "prototype" attribute to default prototype: 1.6 lua_pushliteral(L, "prototype"); // 3 1.7 - lua_getfield(L, 1.8 - LUA_REGISTRYINDEX, 1.9 - MONDELEFANT_CLASS_PROTO_REGKEY 1.10 - ); // 4 1.11 + lua_getfield(L, LUA_REGISTRYINDEX, MONDELEFANT_CLASS_PROTO_REGKEY); // 4 1.12 lua_rawset(L, 1); 1.13 } 1.14 // set "object" attribute to empty table, unless it is already set: 1.15 @@ -1589,10 +1586,7 @@ 1.16 lua_getfield(L, 1, "_class"); // 3 1.17 if (!lua_toboolean(L, 3)) { 1.18 lua_settop(L, 2); 1.19 - lua_getfield(L, 1.20 - LUA_REGISTRYINDEX, 1.21 - MONDELEFANT_CLASS_PROTO_REGKEY 1.22 - ); // 3 1.23 + lua_getfield(L, LUA_REGISTRYINDEX, MONDELEFANT_CLASS_PROTO_REGKEY); // 3 1.24 } 1.25 // get value of "_type" attribute: 1.26 lua_getfield(L, 1, "_type"); // 4 1.27 @@ -1731,10 +1725,7 @@ 1.28 lua_getfield(L, 1, "_class"); // 4 1.29 if (!lua_toboolean(L, 4)) { 1.30 lua_settop(L, 3); 1.31 - lua_getfield(L, 1.32 - LUA_REGISTRYINDEX, 1.33 - MONDELEFANT_CLASS_PROTO_REGKEY 1.34 - ); // 4 1.35 + lua_getfield(L, LUA_REGISTRYINDEX, MONDELEFANT_CLASS_PROTO_REGKEY); // 4 1.36 } 1.37 // get value of "_type" attribute: 1.38 lua_getfield(L, 1, "_type"); // 5