mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 20:10:17 +00:00
22 lines
448 B
C
22 lines
448 B
C
#pragma once
|
|
|
|
#include "pocketpy/pocketpy.h"
|
|
|
|
#include "pocketpy/common/utils.h"
|
|
#include "pocketpy/common/sstream.h"
|
|
#include "pocketpy/interpreter/vm.h"
|
|
|
|
typedef struct c11_array2d {
|
|
py_TValue* data; // slots
|
|
int n_cols;
|
|
int n_rows;
|
|
int numel;
|
|
} c11_array2d;
|
|
|
|
typedef struct c11_array2d_iterator {
|
|
c11_array2d* array;
|
|
int index;
|
|
} c11_array2d_iterator;
|
|
|
|
c11_array2d* py_newarray2d(py_OutRef out, int n_cols, int n_rows);
|