From d60a5cfc552e0f5b6e9143a1d85fcc0208021e1a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 22 Feb 2011 11:32:29 +0000 Subject: feature back from 2.4x where a python error moves the cursor to the error line, added moving to exact column for syntax errors too. --- source/blender/python/intern/bpy_traceback.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 source/blender/python/intern/bpy_traceback.h (limited to 'source/blender/python/intern/bpy_traceback.h') diff --git a/source/blender/python/intern/bpy_traceback.h b/source/blender/python/intern/bpy_traceback.h new file mode 100644 index 00000000000..882eab39e23 --- /dev/null +++ b/source/blender/python/intern/bpy_traceback.h @@ -0,0 +1,28 @@ +/** + * $Id: bpy_interface.c 35032 2011-02-21 13:13:08Z campbellbarton $ + * + * ***** 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. + * + * ***** END GPL LICENSE BLOCK ***** + */ + +#ifndef BPY_TRACEBACK_H +#define BPY_TRACEBACK_H + +void python_script_error_jump(const char *filepath, int *lineno, int *offset); + +#endif // BPY_TRACEBACK_H -- cgit v1.2.3