| 1459 | } |
| 1460 | |
| 1461 | static int findConstraint(lua_State *L) |
| 1462 | { |
| 1463 | auto token = luaL_checkstring(L, 1); |
| 1464 | |
| 1465 | color_ostream &out = *Lua::GetOutput(L); |
| 1466 | update_data_structures(out); |
| 1467 | |
| 1468 | ItemConstraint *icv = get_constraint(out, token, NULL, false); |
| 1469 | |
| 1470 | if (icv) |
| 1471 | push_constraint(L, icv); |
| 1472 | else |
| 1473 | lua_pushnil(L); |
| 1474 | return 1; |
| 1475 | } |
| 1476 | |
| 1477 | static int setConstraint(lua_State *L) |
| 1478 | { |
nothing calls this directly
no test coverage detected