diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-18 12:45:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-18 12:45:45 +0400 |
commit | 82216030e97561ddd5d5184be8077423d6cc6c2b (patch) | |
tree | 74891058d9dea3e8d44571bea7ed1802fdb0b1dd /source/blender/python/intern/bpy_intern_string.h | |
parent | f7e22c729e8fa20a0c9b6d9f1d2bba0505c09585 (diff) |
py-api: store frequently used strings as unicode PyObject's to avoid creating/distroying every time.
also fix for cmake warning
Diffstat (limited to 'source/blender/python/intern/bpy_intern_string.h')
-rw-r--r-- | source/blender/python/intern/bpy_intern_string.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_intern_string.h b/source/blender/python/intern/bpy_intern_string.h new file mode 100644 index 00000000000..a974ccfb898 --- /dev/null +++ b/source/blender/python/intern/bpy_intern_string.h @@ -0,0 +1,37 @@ +/* + * $Id: + * + * ***** BEGIN GPL LICENSE BLOCK ***** + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * Contributor(s): Campbell Barton + * + * ***** END GPL LICENSE BLOCK ***** + */ + +/** \file blender/python/intern/bpy_intern_string.h + * \ingroup pythonintern + */ + +void bpy_intern_string_init(void); +void bpy_intern_string_exit(void); + +extern PyObject *bpy_intern_str_register; +extern PyObject *bpy_intern_str_unregister; +extern PyObject *bpy_intern_str_bl_rna; +extern PyObject *bpy_intern_str_order; +extern PyObject *bpy_intern_str_attr; +extern PyObject *bpy_intern_str___slots__; |