diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2005-08-17 18:26:00 +0400 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2005-08-17 18:26:00 +0400 |
commit | 8b060dd5adfe5d56f558e4a600717f2b755d8559 (patch) | |
tree | add7c4df0056bf27f4397ea62162668956630d49 /source/blender/python/api2_2x/gen_utils.h | |
parent | 2872263377aa48233bc4e6a8f298a3706464288c (diff) |
- update to constant.c
- give it the key/items interface
- creates some factory functions for const generation
- genutils methods
- method for getting module constants
- method for throwing errors with a print string
- updates to function names
- clean up interpreter launch a bit
Diffstat (limited to 'source/blender/python/api2_2x/gen_utils.h')
-rw-r--r-- | source/blender/python/api2_2x/gen_utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/gen_utils.h b/source/blender/python/api2_2x/gen_utils.h index eaee7ae5d2b..d565d02720d 100644 --- a/source/blender/python/api2_2x/gen_utils.h +++ b/source/blender/python/api2_2x/gen_utils.h @@ -51,6 +51,8 @@ #define Py_RETURN_NONE Py_INCREF( Py_None ); return Py_None #endif +PyObject *EXPP_GetModuleConstant(char *module, char *constant); + int StringEqual( const char *string1, const char *string2 ); char *GetIdName( ID * id ); ID *GetIdFromList( ListBase * list, char *name ); @@ -73,6 +75,9 @@ PyObject *EXPP_incr_ret_False(void); PyObject *EXPP_ReturnPyObjError( PyObject * type, char *error_msg ); int EXPP_ReturnIntError( PyObject * type, char *error_msg ); +PyObject *EXPP_objError(PyObject *type, const char *format, ...); +int EXPP_intError(PyObject *type, const char *format, ...); + int EXPP_check_sequence_consistency( PyObject * seq, PyTypeObject * against ); PyObject *EXPP_tuple_repr( PyObject * self, int size ); |