diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-22 14:32:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-22 14:32:29 +0300 |
commit | d60a5cfc552e0f5b6e9143a1d85fcc0208021e1a (patch) | |
tree | d8be151f4961f7ba65a2da228bed60d07203fe44 /source/blender/python/intern/bpy_traceback.h | |
parent | ef6cbc3da0af5a05f59969025d75ae6567c0b299 (diff) |
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.
Diffstat (limited to 'source/blender/python/intern/bpy_traceback.h')
-rw-r--r-- | source/blender/python/intern/bpy_traceback.h | 28 |
1 files changed, 28 insertions, 0 deletions
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 |