static int vec2_unit(lua_State* L) { Vector2f* self = check_vec2(L, 1); new_vec2(L, result); *result = self->Unit(); return 1; }