interrogatedb: add interrogate_type_is_global (+regenerate pydtool)
This commit is contained in:
parent
162b86c6d9
commit
bdb575e766
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* This file was generated by:
|
||||
* interrogate -D EXPCL_DTOOLCONFIG= -nodb -python -promiscuous -I/home/rdb/panda3d-git/built/include -module panda3d.interrogatedb -library interrogatedb -string -true-names -do-module -oc pydtool.cxx ../../src/interrogatedb/interrogate_interface.h ../../src/interrogatedb/interrogate_request.h
|
||||
* interrogate -D EXPCL_DTOOLCONFIG= -nodb -python -promiscuous -I../../../built/include -module panda3d.interrogatedb -library interrogatedb -string -true-names -do-module -oc pydtool.cxx ../../src/interrogatedb/interrogate_interface.h ../../src/interrogatedb/interrogate_request.h
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
#define PY_SSIZE_T_CLEAN 1
|
||||
|
||||
#if PYTHON_FRAMEWORK
|
||||
#include "Python/Python.h"
|
||||
#include <Python/Python.h>
|
||||
#else
|
||||
#include "Python.h"
|
||||
#endif
|
||||
|
|
@ -85,6 +85,9 @@ static PyObject *_inP07ytsqGH(PyObject *self, PyObject *args);
|
|||
static PyObject *_inP07yt7shV(PyObject *self, PyObject *args);
|
||||
static PyObject *_inP07ytA1eF(PyObject *self, PyObject *args);
|
||||
static PyObject *_inP07yt776V(PyObject *self, PyObject *args);
|
||||
static PyObject *_inP07ytryup(PyObject *self, PyObject *args);
|
||||
static PyObject *_inP07ytiytI(PyObject *self, PyObject *args);
|
||||
static PyObject *_inP07ytZc07(PyObject *self, PyObject *args);
|
||||
static PyObject *_inP07ytfaH0(PyObject *self, PyObject *args);
|
||||
static PyObject *_inP07ytGB9D(PyObject *self, PyObject *args);
|
||||
static PyObject *_inP07ytsxxs(PyObject *self, PyObject *args);
|
||||
|
|
@ -94,6 +97,7 @@ static PyObject *_inP07yt4Px8(PyObject *self, PyObject *args);
|
|||
static PyObject *_inP07ytNHcs(PyObject *self, PyObject *args);
|
||||
static PyObject *_inP07ytqHrb(PyObject *self, PyObject *args);
|
||||
static PyObject *_inP07ytaOqq(PyObject *self, PyObject *args);
|
||||
static PyObject *_inP07ytpTBb(PyObject *self, PyObject *args);
|
||||
static PyObject *_inP07ytqWOw(PyObject *self, PyObject *args);
|
||||
static PyObject *_inP07ytHu7x(PyObject *self, PyObject *args);
|
||||
static PyObject *_inP07ytwGnA(PyObject *self, PyObject *args);
|
||||
|
|
@ -1237,6 +1241,56 @@ _inP07yt776V(PyObject *, PyObject *args) {
|
|||
return (PyObject *)NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Python simple wrapper for
|
||||
* char const *interrogate_make_seq_scoped_name(MakeSeqIndex make_seq)
|
||||
*/
|
||||
static PyObject *
|
||||
_inP07ytryup(PyObject *, PyObject *args) {
|
||||
int param0;
|
||||
if (PyArg_ParseTuple(args, "i", ¶m0)) {
|
||||
char const *return_value = interrogate_make_seq_scoped_name((MakeSeqIndex)param0);
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
return PyUnicode_FromString(return_value);
|
||||
#else
|
||||
return PyString_FromString(return_value);
|
||||
#endif
|
||||
}
|
||||
return (PyObject *)NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Python simple wrapper for
|
||||
* bool interrogate_make_seq_has_comment(ElementIndex element)
|
||||
*/
|
||||
static PyObject *
|
||||
_inP07ytiytI(PyObject *, PyObject *args) {
|
||||
int param0;
|
||||
if (PyArg_ParseTuple(args, "i", ¶m0)) {
|
||||
bool return_value = interrogate_make_seq_has_comment((ElementIndex)param0);
|
||||
return PyBool_FromLong(return_value);
|
||||
}
|
||||
return (PyObject *)NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Python simple wrapper for
|
||||
* char const *interrogate_make_seq_comment(ElementIndex element)
|
||||
*/
|
||||
static PyObject *
|
||||
_inP07ytZc07(PyObject *, PyObject *args) {
|
||||
int param0;
|
||||
if (PyArg_ParseTuple(args, "i", ¶m0)) {
|
||||
char const *return_value = interrogate_make_seq_comment((ElementIndex)param0);
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
return PyUnicode_FromString(return_value);
|
||||
#else
|
||||
return PyString_FromString(return_value);
|
||||
#endif
|
||||
}
|
||||
return (PyObject *)NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Python simple wrapper for
|
||||
* char const *interrogate_make_seq_num_name(MakeSeqIndex make_seq)
|
||||
|
|
@ -1397,6 +1451,20 @@ _inP07ytaOqq(PyObject *, PyObject *args) {
|
|||
return (PyObject *)NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Python simple wrapper for
|
||||
* bool interrogate_type_is_global(TypeIndex type)
|
||||
*/
|
||||
static PyObject *
|
||||
_inP07ytpTBb(PyObject *, PyObject *args) {
|
||||
int param0;
|
||||
if (PyArg_ParseTuple(args, "i", ¶m0)) {
|
||||
bool return_value = interrogate_type_is_global((TypeIndex)param0);
|
||||
return PyBool_FromLong(return_value);
|
||||
}
|
||||
return (PyObject *)NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Python simple wrapper for
|
||||
* char const *interrogate_type_name(TypeIndex type)
|
||||
|
|
@ -2416,6 +2484,9 @@ static PyMethodDef python_simple_funcs[] = {
|
|||
{ "interrogate_wrapper_unique_name", &_inP07yt7shV, METH_VARARGS },
|
||||
{ "interrogate_get_wrapper_by_unique_name", &_inP07ytA1eF, METH_VARARGS },
|
||||
{ "interrogate_make_seq_seq_name", &_inP07yt776V, METH_VARARGS },
|
||||
{ "interrogate_make_seq_scoped_name", &_inP07ytryup, METH_VARARGS },
|
||||
{ "interrogate_make_seq_has_comment", &_inP07ytiytI, METH_VARARGS },
|
||||
{ "interrogate_make_seq_comment", &_inP07ytZc07, METH_VARARGS },
|
||||
{ "interrogate_make_seq_num_name", &_inP07ytfaH0, METH_VARARGS },
|
||||
{ "interrogate_make_seq_element_name", &_inP07ytGB9D, METH_VARARGS },
|
||||
{ "interrogate_number_of_global_types", &_inP07ytsxxs, METH_VARARGS },
|
||||
|
|
@ -2425,6 +2496,7 @@ static PyMethodDef python_simple_funcs[] = {
|
|||
{ "interrogate_get_type_by_name", &_inP07ytNHcs, METH_VARARGS },
|
||||
{ "interrogate_get_type_by_scoped_name", &_inP07ytqHrb, METH_VARARGS },
|
||||
{ "interrogate_get_type_by_true_name", &_inP07ytaOqq, METH_VARARGS },
|
||||
{ "interrogate_type_is_global", &_inP07ytpTBb, METH_VARARGS },
|
||||
{ "interrogate_type_name", &_inP07ytqWOw, METH_VARARGS },
|
||||
{ "interrogate_type_scoped_name", &_inP07ytHu7x, METH_VARARGS },
|
||||
{ "interrogate_type_true_name", &_inP07ytwGnA, METH_VARARGS },
|
||||
|
|
|
|||
|
|
@ -509,6 +509,12 @@ interrogate_get_type_by_true_name(const char *type_name) {
|
|||
return InterrogateDatabase::get_ptr()->lookup_type_by_true_name(type_name);
|
||||
}
|
||||
|
||||
bool
|
||||
interrogate_type_is_global(TypeIndex type) {
|
||||
// cerr << "interrogate_type_is_global(" << type << ")\n";
|
||||
return InterrogateDatabase::get_ptr()->get_type(type).is_global();
|
||||
}
|
||||
|
||||
const char *
|
||||
interrogate_type_name(TypeIndex type) {
|
||||
// cerr << "interrogate_type_name(" << type << ")\n";
|
||||
|
|
|
|||
|
|
@ -367,6 +367,7 @@ EXPCL_INTERROGATEDB TypeIndex interrogate_get_type(int n);
|
|||
EXPCL_INTERROGATEDB TypeIndex interrogate_get_type_by_name(const char *type_name);
|
||||
EXPCL_INTERROGATEDB TypeIndex interrogate_get_type_by_scoped_name(const char *type_name);
|
||||
EXPCL_INTERROGATEDB TypeIndex interrogate_get_type_by_true_name(const char *type_name);
|
||||
EXPCL_INTERROGATEDB bool interrogate_type_is_global(TypeIndex type);
|
||||
EXPCL_INTERROGATEDB const char *interrogate_type_name(TypeIndex type);
|
||||
EXPCL_INTERROGATEDB const char *interrogate_type_scoped_name(TypeIndex type);
|
||||
EXPCL_INTERROGATEDB const char *interrogate_type_true_name(TypeIndex type);
|
||||
|
|
|
|||
Loading…
Reference in New Issue