mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-23 04:50:17 +00:00
some fix
This commit is contained in:
parent
583f91399c
commit
9e4277e87f
@ -3,8 +3,6 @@
|
||||
#include "common.h"
|
||||
#include "memory.h"
|
||||
#include "obj.h"
|
||||
#include "codeobject.h"
|
||||
#include "namedict.h"
|
||||
|
||||
namespace pkpy {
|
||||
struct ManagedHeap{
|
||||
|
@ -15,8 +15,10 @@ struct Tuple {
|
||||
int _size;
|
||||
|
||||
Tuple(int n);
|
||||
Tuple(const Tuple& other);
|
||||
Tuple(Tuple&& other) noexcept;
|
||||
Tuple(const Tuple& other) = delete;
|
||||
Tuple& operator=(const Tuple& other) = delete;
|
||||
Tuple& operator=(Tuple&& other) = delete;
|
||||
~Tuple();
|
||||
|
||||
Tuple(PyVar, PyVar);
|
||||
|
@ -11,10 +11,6 @@ Tuple::Tuple(int n){
|
||||
this->_size = n;
|
||||
}
|
||||
|
||||
Tuple::Tuple(const Tuple& other): Tuple(other._size){
|
||||
for(int i=0; i<_size; i++) _args[i] = other._args[i];
|
||||
}
|
||||
|
||||
Tuple::Tuple(Tuple&& other) noexcept {
|
||||
_size = other._size;
|
||||
if(other.is_inlined()){
|
||||
|
Loading…
x
Reference in New Issue
Block a user