| 207 | } |
| 208 | |
| 209 | fcyColor* ColorWrapper::CreateAndPush(lua_State* L) |
| 210 | { |
| 211 | fcyColor* p = static_cast<fcyColor*>(lua_newuserdata(L, sizeof(fcyColor))); |
| 212 | new(p) fcyColor(); // 构造 |
| 213 | luaL_getmetatable(L, TYPENAME_COLOR); |
| 214 | lua_setmetatable(L, -2); |
| 215 | return p; |
| 216 | } |
| 217 | #pragma endregion |
| 218 | |
| 219 | //////////////////////////////////////////////////////////////////////////////// |
nothing calls this directly
no outgoing calls
no test coverage detected