| 104 | void pushToLua(lua_State *L, const Xorshift128Plus<uint32_t> &t); |
| 105 | |
| 106 | template <typename T> void pushToLua(lua_State *L, Vec3<T> &v) |
| 107 | { |
| 108 | lua_createtable(L, 0, 3); |
| 109 | pushToLua(L, v.x); |
| 110 | lua_setfield(L, -2, "x"); |
| 111 | pushToLua(L, v.y); |
| 112 | lua_setfield(L, -2, "y"); |
| 113 | pushToLua(L, v.z); |
| 114 | lua_setfield(L, -2, "z"); |
| 115 | } |
| 116 | template <typename T> void pushToLua(lua_State *L, const Vec3<T> &v) |
| 117 | { |
| 118 | lua_createtable(L, 0, 3); |
no test coverage detected