Ported GCode::set_extruders() and GCode::change_layer() to XS
This commit is contained in:
@@ -44,6 +44,7 @@ class Ref {
|
||||
public:
|
||||
Ref() : val(NULL) {}
|
||||
Ref(T* t) : val(t) {}
|
||||
Ref(const T* t) : val(const_cast<T*>(t)) {}
|
||||
operator T*() const { return val; }
|
||||
static const char* CLASS() { return ClassTraits<T>::name_ref; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user