2023-05-23 19:06:25 +02:00
|
|
|
# /!\ Autogenerated code, modifications will be lost /!\
|
|
|
|
# see `generation/generate_pool_arrays.py`
|
|
|
|
|
|
|
|
cimport cython
|
|
|
|
from libc.stdint cimport uintptr_t
|
|
|
|
|
2023-06-02 11:13:10 +02:00
|
|
|
from pandemonium._hazmat.gdapi cimport (
|
2023-05-23 19:06:25 +02:00
|
|
|
pythonscript_gdapi10 as gdapi10,
|
|
|
|
pythonscript_gdapi11 as gdapi11,
|
|
|
|
pythonscript_gdapi12 as gdapi12,
|
|
|
|
)
|
2023-06-02 11:13:10 +02:00
|
|
|
from pandemonium._hazmat.gdnative_api_struct cimport (
|
2023-05-23 19:06:25 +02:00
|
|
|
{% for t in types %}
|
|
|
|
{{ t.gd_value }},
|
|
|
|
{{ t.gd_pool }},
|
|
|
|
{{ t.gd_pool }}_write_access,
|
|
|
|
{{ t.gd_pool }}_read_access,
|
|
|
|
{% endfor %}
|
|
|
|
)
|
2023-06-02 11:13:10 +02:00
|
|
|
from pandemonium.builtins cimport (
|
2023-05-23 19:06:25 +02:00
|
|
|
Array,
|
|
|
|
{% for t in types %}
|
|
|
|
{% if not t.is_base_type %}
|
|
|
|
{{ t.py_value }},
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
)
|
|
|
|
|
|
|
|
from contextlib import contextmanager
|
|
|
|
|
|
|
|
|
|
|
|
{% from 'pool_x_array.tmpl.pyx' import render_pool_array_pyx %}
|
|
|
|
{% for t in types %}
|
|
|
|
{{ render_pool_array_pyx(t) }}
|
|
|
|
{% endfor %}
|